Automate re-tagging and pushing

This commit is contained in:
Reid 'arrdem' McKenzie 2022-11-26 21:56:06 -07:00
parent e90ce6b8ef
commit 8cf17b942b

View file

@ -2,5 +2,15 @@
cd "$(realpath $(dirname $0))" cd "$(realpath $(dirname $0))"
docker build -t registry.tirefireind.us/arrdem/activitypub_relay:latest -t relay . IMAGE=registry.tirefireind.us/arrdem/activitypub_relay
docker push registry.tirefireind.us/arrdem/activitypub_relay:latest
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