about summary refs log tree commit diff
path: root/users/fcuny/blog/scripts/deploy.sh
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-23 17:43:02 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-23 17:43:02 -0700
commit14a5a6d480f0c2d71b3f43b272e07c5ce769ad83 (patch)
tree33c9de5c9d5d2da8d0dc16302dfb9500717a490b /users/fcuny/blog/scripts/deploy.sh
parentfeat(tahoe): enable sourcegraph (diff)
parentsign the drone configuration (diff)
downloadworld-14a5a6d480f0c2d71b3f43b272e07c5ce769ad83.tar.gz
Merge remote-tracking branch 'blog/main' into fcuny/migrate-monorepo-blog
Diffstat (limited to 'users/fcuny/blog/scripts/deploy.sh')
-rwxr-xr-xusers/fcuny/blog/scripts/deploy.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/users/fcuny/blog/scripts/deploy.sh b/users/fcuny/blog/scripts/deploy.sh
new file mode 100755
index 0000000..69ad82a
--- /dev/null
+++ b/users/fcuny/blog/scripts/deploy.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+git diff --exit-code
+git diff --staged --exit-code
+
+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