From 521c04fb6788d173718fe67a2072a198cd80be7a Mon Sep 17 00:00:00 2001 From: Glenn Date: Thu, 13 Feb 2025 11:32:27 +0100 Subject: [PATCH 1/2] ci: improve deployment process by down/up-scaling --- .drone.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.drone.yml b/.drone.yml index 794db1a..d3f22ac 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,12 +55,20 @@ steps: -i ~/.ssh/deploy_key "$SSH_USER@$SSH_HOST" ps:stop social + - ssh -o StrictHostKeyChecking=no + -i ~/.ssh/deploy_key + "$SSH_USER@$SSH_HOST" + ps:scale social web=0 - ssh -o StrictHostKeyChecking=no -i ~/.ssh/deploy_key "$SSH_USER@$SSH_HOST" git:from-image social "glenux/service-gotosocial:${DRONE_BRANCH/\\//-}_${DRONE_COMMIT_SHA:0:8}" # + - ssh -o StrictHostKeyChecking=no + -i ~/.ssh/deploy_key + "$SSH_USER@$SSH_HOST" + ps:scale social web=1 - echo "SUCCESS" # volumes: From 8e0233b71341d18b6e2651a60446825a8696d2d2 Mon Sep 17 00:00:00 2001 From: glenux Date: Thu, 13 Feb 2025 10:37:46 +0000 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a7c81e8..3b08328 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,4 @@ # FROM superseriousbusiness/gotosocial:0.15.0 # FROM superseriousbusiness/gotosocial:0.16.0 # FROM superseriousbusiness/gotosocial:0.17.0 -FROM superseriousbusiness/gotosocial:0.17.3 +FROM superseriousbusiness/gotosocial:0.17.4