2021-12-28 22:59:28 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-11-12 13:01:43 +00:00
|
|
|
set -ex
|
|
|
|
|
2021-12-28 22:59:28 +00:00
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
REPO_ROOT="${SCRIPT_DIR}/.."
|
|
|
|
cd $REPO_ROOT
|
|
|
|
|
2022-11-23 15:58:12 +00:00
|
|
|
HOSTNAME=$(hostname)
|
|
|
|
|
2022-11-24 13:29:48 +00:00
|
|
|
[ "${NO_REBUILD}" == "" ] && ./scripts/rebuild.sh $@
|
2022-11-23 15:58:12 +00:00
|
|
|
[ "${HOSTNAME}" != "hetzner-vm" ] && deploy -s ".#hetzner-vm" -- $@
|
2022-11-24 13:29:48 +00:00
|
|
|
[ "${HOSTNAME}" != "vault" ] && deploy -s ".#vault" -- $@
|
2022-11-23 15:58:12 +00:00
|
|
|
[ "${HOSTNAME}" != "storage" ] && deploy -s ".#storage" -- $@
|
2022-11-24 13:29:48 +00:00
|
|
|
[ "${HOSTNAME}" != "buildbox" ] && deploy -s ".#buildbox" -- $@
|
|
|
|
|