Stage 18 — prod contour deploy (two-host registry rollout, rolling + auto-rollback) #103

Merged
developer merged 5 commits from feature/prod-contour-deploy into development 2026-06-22 04:59:46 +00:00
Showing only changes of commit 9f970495ee - Show all commits
+3 -2
View File
@@ -39,10 +39,11 @@ STATE_FILE="${STATE_FILE:-/opt/scrabble/DEPLOYED_TAG}"
PG_USER="${POSTGRES_USER:-scrabble}" PG_USER="${POSTGRES_USER:-scrabble}"
PG_DB="${POSTGRES_DB:-scrabble}" PG_DB="${POSTGRES_DB:-scrabble}"
cd "$COMPOSE_DIR" cd "$COMPOSE_DIR" || { echo "compose dir $COMPOSE_DIR missing"; exit 1; }
export REGISTRY export REGISTRY
# otelcol joins the host docker group to read the socket; the GID varies per host. # otelcol joins the host docker group to read the socket; the GID varies per host.
export DOCKER_GID="$(getent group docker | cut -d: -f3)" DOCKER_GID="$(getent group docker | cut -d: -f3)"
export DOCKER_GID
dc() { docker compose -f docker-compose.yml -f docker-compose.prod.yml "$@"; } dc() { docker compose -f docker-compose.yml -f docker-compose.prod.yml "$@"; }
use_tag() { export TAG="$1"; } use_tag() { export TAG="$1"; }