From 8cf17b942b6c916e5a7d14b82e3168cb78d76ee7 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sat, 26 Nov 2022 21:56:06 -0700 Subject: [PATCH] Automate re-tagging and pushing --- projects/activitypub_relay/deploy.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/projects/activitypub_relay/deploy.sh b/projects/activitypub_relay/deploy.sh index 04f73b2..b98991b 100755 --- a/projects/activitypub_relay/deploy.sh +++ b/projects/activitypub_relay/deploy.sh @@ -2,5 +2,15 @@ cd "$(realpath $(dirname $0))" -docker build -t registry.tirefireind.us/arrdem/activitypub_relay:latest -t relay . -docker push registry.tirefireind.us/arrdem/activitypub_relay:latest +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