about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xtools/govanity/scripts/deploy.sh8
-rwxr-xr-xusers/fcuny/blog/scripts/deploy.sh10
-rwxr-xr-xusers/fcuny/notes/scripts/deploy.sh10
3 files changed, 5 insertions, 23 deletions
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
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