about summary refs log tree commit diff
path: root/users/fcuny/notes/scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xusers/fcuny/notes/scripts/deploy.sh10
1 files changed, 2 insertions, 8 deletions
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