chore: sync prod deploy timers
All checks were successful
Deploy to Staging / Build Images (push) Successful in 32s
Deploy to Staging / Deploy to Staging (push) Successful in 21s
Deploy to Staging / Verify Staging (push) Successful in 2m30s
Deploy to Staging / Notify Staging Ready (push) Successful in 8s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
All checks were successful
Deploy to Staging / Build Images (push) Successful in 32s
Deploy to Staging / Deploy to Staging (push) Successful in 21s
Deploy to Staging / Verify Staging (push) Successful in 2m30s
Deploy to Staging / Notify Staging Ready (push) Successful in 8s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
This commit is contained in:
@@ -21,6 +21,7 @@ env:
|
|||||||
DEPLOY_PATH: /opt/motovaultpro
|
DEPLOY_PATH: /opt/motovaultpro
|
||||||
COMPOSE_FILE: docker-compose.yml
|
COMPOSE_FILE: docker-compose.yml
|
||||||
COMPOSE_BLUE_GREEN: docker-compose.blue-green.yml
|
COMPOSE_BLUE_GREEN: docker-compose.blue-green.yml
|
||||||
|
COMPOSE_PROD: docker-compose.prod.yml
|
||||||
HEALTH_CHECK_TIMEOUT: "60"
|
HEALTH_CHECK_TIMEOUT: "60"
|
||||||
LOG_LEVEL: INFO
|
LOG_LEVEL: INFO
|
||||||
|
|
||||||
@@ -96,6 +97,7 @@ jobs:
|
|||||||
config/
|
config/
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
docker-compose.blue-green.yml
|
docker-compose.blue-green.yml
|
||||||
|
docker-compose.prod.yml
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
@@ -105,6 +107,7 @@ jobs:
|
|||||||
rsync -av --delete "$GITHUB_WORKSPACE/scripts/" "$DEPLOY_PATH/scripts/"
|
rsync -av --delete "$GITHUB_WORKSPACE/scripts/" "$DEPLOY_PATH/scripts/"
|
||||||
cp "$GITHUB_WORKSPACE/docker-compose.yml" "$DEPLOY_PATH/"
|
cp "$GITHUB_WORKSPACE/docker-compose.yml" "$DEPLOY_PATH/"
|
||||||
cp "$GITHUB_WORKSPACE/docker-compose.blue-green.yml" "$DEPLOY_PATH/"
|
cp "$GITHUB_WORKSPACE/docker-compose.blue-green.yml" "$DEPLOY_PATH/"
|
||||||
|
cp "$GITHUB_WORKSPACE/docker-compose.prod.yml" "$DEPLOY_PATH/"
|
||||||
|
|
||||||
- name: Generate logging configuration
|
- name: Generate logging configuration
|
||||||
run: |
|
run: |
|
||||||
@@ -118,8 +121,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Inject secrets
|
- name: Inject secrets
|
||||||
run: |
|
run: |
|
||||||
chmod +x "$GITHUB_WORKSPACE/scripts/inject-secrets.sh"
|
cd "$DEPLOY_PATH"
|
||||||
"$GITHUB_WORKSPACE/scripts/inject-secrets.sh"
|
chmod +x scripts/inject-secrets.sh
|
||||||
|
SECRETS_DIR="$DEPLOY_PATH/secrets/app" ./scripts/inject-secrets.sh
|
||||||
env:
|
env:
|
||||||
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
|
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
|
||||||
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
|
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
|
||||||
@@ -170,7 +174,7 @@ jobs:
|
|||||||
# --force-recreate ensures containers are recreated even if image tag is same
|
# --force-recreate ensures containers are recreated even if image tag is same
|
||||||
# This prevents stale container content when image digest changes
|
# This prevents stale container content when image digest changes
|
||||||
# Start shared OCR service and target stack
|
# Start shared OCR service and target stack
|
||||||
docker compose -f $COMPOSE_FILE -f $COMPOSE_BLUE_GREEN up -d --force-recreate \
|
docker compose -f $COMPOSE_FILE -f $COMPOSE_BLUE_GREEN -f $COMPOSE_PROD up -d --force-recreate \
|
||||||
mvp-ocr mvp-frontend-$TARGET_STACK mvp-backend-$TARGET_STACK
|
mvp-ocr mvp-frontend-$TARGET_STACK mvp-backend-$TARGET_STACK
|
||||||
|
|
||||||
- name: Wait for stack initialization
|
- name: Wait for stack initialization
|
||||||
@@ -209,7 +213,7 @@ jobs:
|
|||||||
- name: Start Traefik
|
- name: Start Traefik
|
||||||
run: |
|
run: |
|
||||||
cd "$DEPLOY_PATH"
|
cd "$DEPLOY_PATH"
|
||||||
docker compose -f $COMPOSE_FILE -f $COMPOSE_BLUE_GREEN up -d mvp-traefik
|
docker compose -f $COMPOSE_FILE -f $COMPOSE_BLUE_GREEN -f $COMPOSE_PROD up -d mvp-traefik
|
||||||
|
|
||||||
- name: Wait for Traefik
|
- name: Wait for Traefik
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ services:
|
|||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 90s
|
start_period: 180s
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
@@ -183,7 +183,7 @@ services:
|
|||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 90s
|
start_period: 180s
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|||||||
Reference in New Issue
Block a user