diff options
Diffstat (limited to 'users/fcuny/blog/scripts')
-rwxr-xr-x | users/fcuny/blog/scripts/deploy.sh | 20 |
1 files changed, 20 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..4199766 --- /dev/null +++ b/users/fcuny/blog/scripts/deploy.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +set -ueo pipefail + +cd $(git rev-parse --show-toplevel) + +git diff --exit-code +git diff --staged --exit-code + +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 |