#!/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/notes 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