feat: rebuild birth time rectification workflow
This commit is contained in:
@@ -4,5 +4,23 @@ services:
|
||||
- default
|
||||
- app
|
||||
|
||||
rectification-v4-worker:
|
||||
image: ${WEB_IMAGE:-jyotisha-web:local}
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ${APP_ENV_FILE:-../.env.staging}
|
||||
environment:
|
||||
GITHUB_SHA: ${GITHUB_SHA}
|
||||
JYOTISH_API_BASE: http://api:5200
|
||||
working_dir: /app/frontend
|
||||
command: ["npm", "run", "worker:rectification-v4"]
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- app
|
||||
|
||||
networks:
|
||||
app:
|
||||
|
||||
@@ -156,7 +156,8 @@ rollback() {
|
||||
echo "staging verification failed; restoring prior application images" >&2
|
||||
API_IMAGE="$previous_api_target" WEB_IMAGE="$previous_web_target" \
|
||||
GITHUB_SHA="$current_sha" \
|
||||
"${compose[@]}" up -d --no-build --remove-orphans api web caddy || true
|
||||
"${compose[@]}" up -d --no-build --remove-orphans \
|
||||
api web rectification-v4-worker caddy || true
|
||||
fi
|
||||
exit "$status"
|
||||
}
|
||||
@@ -179,6 +180,7 @@ verify_container_image() {
|
||||
}
|
||||
verify_container_image api "$API_IMAGE"
|
||||
verify_container_image web "$WEB_IMAGE"
|
||||
verify_container_image rectification-v4-worker "$WEB_IMAGE"
|
||||
|
||||
"${compose[@]}" exec -T \
|
||||
-e EXPECTED_SHA="$DEPLOY_SHA" -e STAGING_URL="$STAGING_URL" \
|
||||
|
||||
Reference in New Issue
Block a user