wire frontend deployment into ACR and overlays

This commit is contained in:
defiQUG
2026-04-16 14:18:50 -07:00
parent 6ba4182005
commit 0f600e6a31
7 changed files with 74 additions and 31 deletions
+11 -3
View File
@@ -7,6 +7,17 @@
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Pre-parse environment so config.sh can derive readonly values from it.
for ((i = 1; i <= $#; i++)); do
if [ "${!i}" = "--environment" ] || [ "${!i}" = "-e" ]; then
next_index=$((i + 1))
if [ "${next_index}" -le "$#" ]; then
export ENVIRONMENT="${!next_index}"
fi
fi
done
source "${SCRIPT_DIR}/config.sh"
# Usage
@@ -70,8 +81,6 @@ DRY_RUN=false
while [[ $# -gt 0 ]]; do
case $1 in
-e|--environment)
ENVIRONMENT="$2"
export ENVIRONMENT
shift 2
;;
-p|--phase)
@@ -253,4 +262,3 @@ fi
log_info "Deployment log: ${LOG_FILE}"
log_info "State file: ${STATE_FILE}"