From 9c5763085dd5c951ab81b3d75558f62aa3363c77 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 10 Jun 2022 13:53:14 -0700 Subject: fix(scripts): no need to create tags when deploying to fly.io I don't need tags in this repository. There's no need to create them after a deploy. Before stopping the fly.io agent, checks that we're in the CI environment. Change-Id: I6208b70023c6ae74d58e535e24b44221956dbe63 Reviewed-on: https://cl.fcuny.net/c/world/+/408 Tested-by: CI Reviewed-by: Franck Cuny --- tools/govanity/scripts/deploy.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tools/govanity') diff --git a/tools/govanity/scripts/deploy.sh b/tools/govanity/scripts/deploy.sh index 4f46b68..b088c7e 100755 --- a/tools/govanity/scripts/deploy.sh +++ b/tools/govanity/scripts/deploy.sh @@ -5,10 +5,4 @@ git diff --staged --exit-code flyctl deploy -VERSION=$(flyctl info -j |jq -r '.App | "\(.Name)/v\(.Version)"') - -git tag -a --message ${VERSION} ${VERSION} -git push origin --all -git push origin --tags - -flyctl agent stop +[[ "${CI}" ]] && flyctl agent stop -- cgit 1.4.1