Automate immutable production deployments
Test and publish container images / test (push) Successful in 2m43s
Test and publish container images / publish (push) Successful in 2m56s

This commit is contained in:
BuTzZ
2026-07-29 13:00:50 +02:00
parent 2e84f4eae4
commit 2064570913
34 changed files with 1779 additions and 215 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -Eeuo pipefail
install_root="${WATERMAPS_INSTALL_DIR:-/opt/watermaps}"
[[ "$install_root" == /* && "$install_root" != "/" ]] || {
printf 'Ungültiges Watermaps-Installationsverzeichnis: %s\n' "$install_root" >&2
exit 1
}
current_script="$install_root/current/deploy/scripts/auto-deploy.sh"
bootstrap_script="$install_root/deploy/scripts/auto-deploy.sh"
if [[ -x "$current_script" ]]; then
exec "$current_script"
fi
if [[ -x "$bootstrap_script" ]]; then
exec "$bootstrap_script"
fi
printf 'Kein Watermaps-Auto-Deploy-Skript gefunden.\n' >&2
exit 1