Finalize config
All checks were successful
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Successful in 6m10s
Remote Deployment Pipeline / Cleanup Preview (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
All checks were successful
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Successful in 6m10s
Remote Deployment Pipeline / Cleanup Preview (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
This commit is contained in:
@@ -30,6 +30,7 @@ jobs:
|
||||
pr_path: ${{ steps.calc.outputs.pr_path }}
|
||||
steps:
|
||||
- id: calc
|
||||
name: Prepare Context
|
||||
run: |
|
||||
REPO_NAME=$(echo "${{ github.repository }}" | cut -d '/' -f 2)
|
||||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||
@@ -63,7 +64,7 @@ jobs:
|
||||
# 2. Run Docker Compose after sync
|
||||
SCRIPT_AFTER: |
|
||||
cd ${{ needs.prepare_context.outputs.pr_path }}
|
||||
docker compose --env-file dev.env -f docker-compose.yaml -f docker-compose.dev.yaml up -d --build --remove-orphans
|
||||
docker compose --env-file dev.env -f docker-compose.yaml up -d --build --remove-orphans
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# STAGE 3: DEPLOY STAGING
|
||||
@@ -114,7 +115,7 @@ jobs:
|
||||
mkdir -p ${{ env.REMOTE_PROD_PATH }}
|
||||
SCRIPT_AFTER: |
|
||||
cd ${{ env.REMOTE_PROD_PATH }}
|
||||
docker compose --env-file prod.env -f docker-compose.yaml up -d --build --remove-orphans
|
||||
docker compose --env-file prod.env -f docker-compose.yaml -f docker-compose.prod.yaml up -d --build --remove-orphans
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# CLEANUP (Using appleboy/ssh-action for pure command execution)
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
services:
|
||||
traefik:
|
||||
networks:
|
||||
- proxy
|
||||
- legacy-nginx
|
||||
networks:
|
||||
legacy-nginx:
|
||||
name: proxy
|
||||
external: true
|
||||
Reference in New Issue
Block a user