aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/notes/scripts/deploy.sh
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-23 19:32:36 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-23 19:32:36 -0700
commit69fb19cd967ac301efba635fea9f31bf203cf0cb (patch)
tree8423069a26e5c8c845b0bbe58d2c2ea59a7ac6eb /users/fcuny/notes/scripts/deploy.sh
parentref(blog): remove unneeded files for the blog (diff)
parentdelete Makefile (diff)
downloadinfra-69fb19cd967ac301efba635fea9f31bf203cf0cb.tar.gz
Merge remote-tracking branch 'notes/main'
Diffstat (limited to 'users/fcuny/notes/scripts/deploy.sh')
-rwxr-xr-xusers/fcuny/notes/scripts/deploy.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/users/fcuny/notes/scripts/deploy.sh b/users/fcuny/notes/scripts/deploy.sh
new file mode 100755
index 0000000..4075f08
--- /dev/null
+++ b/users/fcuny/notes/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 | "notes.fcuny.net/v\(.Version)"')
+
+git tag -a --message ${VERSION} ${VERSION}
+git push origin --all
+git push origin --tags
+
+flyctl agent stop