about summary refs log tree commit diff
path: root/users/fcuny/blog/scripts/deploy.sh
blob: eef6771d7bf218d4095917e5863a16731cedfd54 (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/blog

flyctl deploy

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