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

[[ "${CI}" ]] && flyctl agent stop