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 --- users/fcuny/notes/scripts/deploy.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'users/fcuny/notes') diff --git a/users/fcuny/notes/scripts/deploy.sh b/users/fcuny/notes/scripts/deploy.sh index 4c6851c..d26c932 100755 --- a/users/fcuny/notes/scripts/deploy.sh +++ b/users/fcuny/notes/scripts/deploy.sh @@ -2,7 +2,7 @@ set -ueo pipefail -cd $(git rev-parse --show-toplevel) +cd "$(git rev-parse --show-toplevel)" git diff --exit-code git diff --staged --exit-code @@ -11,10 +11,4 @@ cd users/fcuny/notes flyctl deploy -VERSION=$(flyctl info -j |jq -r '.App | "notes.fcuny.net/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