2021-12-28 22:59:28 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-09-14 19:44:27 +01:00
|
|
|
set -e
|
2022-11-12 13:01:43 +00:00
|
|
|
|
2021-12-28 22:59:28 +00:00
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
2023-09-14 19:44:27 +01:00
|
|
|
cd $SCRIPT_DIR
|
|
|
|
cd $(git rev-parse --show-toplevel)
|
2021-12-28 22:59:28 +00:00
|
|
|
|
2022-11-23 15:58:12 +00:00
|
|
|
HOSTNAME=$(hostname)
|
|
|
|
|
2023-09-16 16:06:16 +01:00
|
|
|
[ "${NO_REBUILD}" == "" ] && ./scripts/rebuild.sh "$@"
|
2023-09-21 05:06:27 +01:00
|
|
|
[ "${HOSTNAME}" != "hetzner-arm" ] && ./scripts/deploy/hetzner-arm.sh "$@"
|
2023-09-16 16:06:16 +01:00
|
|
|
[ "${HOSTNAME}" != "vault" ] && ./scripts/deploy/vault.sh "$@"
|
|
|
|
[ "${HOSTNAME}" != "raspberry" ] && ./scripts/deploy/raspberry.sh "$@"
|