17 lines
482 B
Bash
Executable file
17 lines
482 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
REPO_ROOT="${SCRIPT_DIR}/.."
|
|
cd $REPO_ROOT
|
|
|
|
HOSTNAME=$(hostname)
|
|
|
|
[ "${NO_REBUILD}" == "" ] && ./scripts/rebuild.sh $@
|
|
[ "${HOSTNAME}" != "hetzner-vm" ] && deploy -s ".#hetzner-vm" -- $@
|
|
[ "${HOSTNAME}" != "vault" ] && deploy -s ".#vault" -- $@
|
|
[ "${HOSTNAME}" != "storage" ] && deploy -s ".#storage" -- $@
|
|
[ "${HOSTNAME}" != "buildbox" ] && deploy -s ".#buildbox" -- $@
|
|
|