about summary refs log tree commit diff
path: root/tools/govanity/scripts/deploy.sh
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-11 18:45:05 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-11 18:46:55 -0700
commitec02496f673820244fabb3fadc903d1315218497 (patch)
treec7b7cc612d8303aec7d1fe5f093dc30a0d1f6bcb /tools/govanity/scripts/deploy.sh
parentDockerfile: update steps (diff)
downloadworld-ec02496f673820244fabb3fadc903d1315218497.tar.gz
scripts: add a script to deploy
Remove the target from the Makefile, add a target to the flake
configuration.
Diffstat (limited to 'tools/govanity/scripts/deploy.sh')
-rwxr-xr-xtools/govanity/scripts/deploy.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/govanity/scripts/deploy.sh b/tools/govanity/scripts/deploy.sh
new file mode 100755
index 0000000..4f46b68
--- /dev/null
+++ b/tools/govanity/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 | "\(.Name)/v\(.Version)"')
+
+git tag -a --message ${VERSION} ${VERSION}
+git push origin --all
+git push origin --tags
+
+flyctl agent stop