Added volume and set error exit (#14)
All checks were successful
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 1m10s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 1m15s
All checks were successful
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 1m10s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 1m15s
Reviewed-on: #14 Co-authored-by: kovagoadi <kovagoadi@gmail.com> Co-committed-by: kovagoadi <kovagoadi@gmail.com>
This commit is contained in:
@@ -63,6 +63,7 @@ jobs:
|
|||||||
mkdir -p ${{ needs.prepare_context.outputs.pr_path }}
|
mkdir -p ${{ needs.prepare_context.outputs.pr_path }}
|
||||||
# 2. Run Docker Compose after sync
|
# 2. Run Docker Compose after sync
|
||||||
SCRIPT_AFTER: |
|
SCRIPT_AFTER: |
|
||||||
|
set -e
|
||||||
cd ${{ needs.prepare_context.outputs.pr_path }}
|
cd ${{ needs.prepare_context.outputs.pr_path }}
|
||||||
docker compose --env-file dev.env -f docker-compose.yaml up -d --build --remove-orphans
|
docker compose --env-file dev.env -f docker-compose.yaml up -d --build --remove-orphans
|
||||||
|
|
||||||
@@ -88,6 +89,7 @@ jobs:
|
|||||||
SCRIPT_BEFORE: |
|
SCRIPT_BEFORE: |
|
||||||
mkdir -p ${{ env.REMOTE_STAGING_PATH }}
|
mkdir -p ${{ env.REMOTE_STAGING_PATH }}
|
||||||
SCRIPT_AFTER: |
|
SCRIPT_AFTER: |
|
||||||
|
set -e
|
||||||
cd ${{ env.REMOTE_STAGING_PATH }}
|
cd ${{ env.REMOTE_STAGING_PATH }}
|
||||||
docker compose --env-file staging.env -f docker-compose.yaml up -d --build --remove-orphans
|
docker compose --env-file staging.env -f docker-compose.yaml up -d --build --remove-orphans
|
||||||
|
|
||||||
@@ -114,6 +116,7 @@ jobs:
|
|||||||
SCRIPT_BEFORE: |
|
SCRIPT_BEFORE: |
|
||||||
mkdir -p ${{ env.REMOTE_PROD_PATH }}
|
mkdir -p ${{ env.REMOTE_PROD_PATH }}
|
||||||
SCRIPT_AFTER: |
|
SCRIPT_AFTER: |
|
||||||
|
set -e
|
||||||
cd ${{ env.REMOTE_PROD_PATH }}
|
cd ${{ env.REMOTE_PROD_PATH }}
|
||||||
docker compose --env-file prod.env -f docker-compose.yaml -f docker-compose.prod.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
|
||||||
|
|
||||||
|
|||||||
@@ -44,4 +44,6 @@ services:
|
|||||||
- traefik.http.routers.https.tls=true
|
- traefik.http.routers.https.tls=true
|
||||||
- traefik.http.routers.https.tls.certresolver=letsencrypt
|
- traefik.http.routers.https.tls.certresolver=letsencrypt
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
|
volumes:
|
||||||
|
letsencrypt:
|
||||||
Reference in New Issue
Block a user