about summary refs log tree commit diff
path: root/tools/govanity/scripts/deploy.sh
blob: 4f46b68cce6c909bbff6937b766c13ce39322f6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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