2022-11-26 23:04:44 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
cd "$(realpath $(dirname $0))"
|
|
|
|
|
2022-11-27 04:56:06 +00:00
|
|
|
IMAGE=registry.tirefireind.us/arrdem/activitypub_relay
|
|
|
|
|
|
|
|
docker build -t $IMAGE:latest -t relay .
|
|
|
|
docker push $IMAGE:latest
|
|
|
|
ssh root@relay.tirefireind.us systemctl restart activitypub-relay
|
|
|
|
|
|
|
|
if [ -n "$TAG" ]; then
|
|
|
|
for stem in registry.tirefireind.us/arrdem/activitypub_relay registry.digitalocean.com/macawsocial/relay; do
|
|
|
|
docker tag relay "$stem:$TAG"
|
|
|
|
docker push $stem:"$TAG"
|
|
|
|
done
|
|
|
|
fi
|