ci: add teamcity build and deployment entry points

This commit is contained in:
Bastian Wagner
2026-08-17 13:53:01 +02:00
parent ccea4e48ec
commit 2994e46274
7 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
: "${REGISTRY:?REGISTRY is required}"
: "${APP_BASE_URL:?APP_BASE_URL is required}"
if [[ ! -s .previous-image-tag ]]; then
echo "No previous image tag is available for rollback" >&2
exit 1
fi
IMAGE_TAG="$(cat .previous-image-tag)"
export IMAGE_TAG REGISTRY
docker compose pull edge api worker
docker compose up -d --remove-orphans --wait --wait-timeout 120
scripts/teamcity/smoke.sh
printf '%s\n' "$IMAGE_TAG" > .deployed-image-tag