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-29 09:25:11 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-29 09:25:11 -0700
commitf3a1d10b2c5df68835f86082cfb722ae679190ff (patch)
treeab29190a9e513380ff55b297c4ee58be41a70d12 /tools/govanity/scripts/deploy.sh
parentfix(cgit): write the test correctly (diff)
parentremove unused Makefile (diff)
downloadworld-f3a1d10b2c5df68835f86082cfb722ae679190ff.tar.gz
Merge remote-tracking branch 'govanity/main'
Change-Id: I4fd7c748648415db1fa9baaa048ba51e186ec268
Diffstat (limited to '')
-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