aboutsummaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-10 13:53:14 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-10 13:55:26 -0700
commit9c5763085dd5c951ab81b3d75558f62aa3363c77 (patch)
tree00e5128621e17ca18082a84877ed957d85a4a980 /users
parentci(shellcheck): add a script to check shell scripts (diff)
downloadinfra-9c5763085dd5c951ab81b3d75558f62aa3363c77.tar.gz
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 <franck@fcuny.net>
Diffstat (limited to 'users')
-rwxr-xr-xusers/fcuny/blog/scripts/deploy.sh10
-rwxr-xr-xusers/fcuny/notes/scripts/deploy.sh10
2 files changed, 4 insertions, 16 deletions
diff --git a/users/fcuny/blog/scripts/deploy.sh b/users/fcuny/blog/scripts/deploy.sh
index 4199766..eef6771 100755
--- a/users/fcuny/blog/scripts/deploy.sh
+++ b/users/fcuny/blog/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/blog
flyctl deploy
-VERSION=$(flyctl info -j |jq -r '.App | "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
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