Revert "Undid workflow changes"
All checks were successful
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Pre-Prod) (pull_request) Successful in 56s
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Successful in 1m16s
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 2s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Pre-Prod) (pull_request) Successful in 56s
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Successful in 1m16s
Remote Deployment Pipeline / Cleanup Preview (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
This reverts commit d415f0d82f.
This commit is contained in:
@@ -12,7 +12,7 @@ env:
|
||||
REMOTE_DEPLOY_PATH: /var/app/traefik/test
|
||||
REMOTE_PROD_PATH: /var/app/traefik/prod
|
||||
REMOTE_STAGING_PATH: /var/app/traefik/staging
|
||||
# REMOTE_PREPROD_PATH: /var/app/traefik/preprod
|
||||
REMOTE_PREPROD_PATH: /var/app/traefik/preprod
|
||||
|
||||
# --- SECRETS ---
|
||||
SSH_HOST: ${{ secrets.SSH_HOST }}
|
||||
@@ -97,40 +97,40 @@ jobs:
|
||||
# ------------------------------------------------------------------
|
||||
# STAGE 3.5: DEPLOY PRE-PROD
|
||||
# ------------------------------------------------------------------
|
||||
# deploy_preprod:
|
||||
# name: Deploy (Pre-Prod)
|
||||
# runs-on: ubuntu-latest
|
||||
# # needs: [deploy_staging]
|
||||
# # if: github.ref == 'refs/heads/test_preprod'
|
||||
# steps:
|
||||
# - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
deploy_preprod:
|
||||
name: Deploy (Pre-Prod)
|
||||
runs-on: ubuntu-latest
|
||||
# needs: [deploy_staging]
|
||||
# if: github.ref == 'refs/heads/test_preprod'
|
||||
steps:
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
|
||||
# - name: Deploy via Rsync & Docker
|
||||
# uses: easingthemes/ssh-deploy@a1aa0b6cf96ce2406eef90faa35007a4a7bf0ac0 # v5.1.1
|
||||
# env:
|
||||
# SSH_PRIVATE_KEY: ${{ env.SSH_PRIVATE_KEY }}
|
||||
# REMOTE_HOST: ${{ env.SSH_HOST }}
|
||||
# REMOTE_USER: ${{ env.SSH_USER }}
|
||||
# REMOTE_PORT: ${{ env.SSH_PORT }}
|
||||
# TARGET: ${{ env.REMOTE_PREPROD_PATH }}
|
||||
# EXCLUDE: ".git/, .github/"
|
||||
# SCRIPT_BEFORE: |
|
||||
# mkdir -p ${{ env.REMOTE_PREPROD_PATH }}
|
||||
# SCRIPT_AFTER: |
|
||||
# set -e
|
||||
# cd ${{ env.REMOTE_PREPROD_PATH }}
|
||||
# docker compose --env-file preprod.env -f docker-compose.yaml -f docker-compose.prod.yaml up -d --build --remove-orphans --wait
|
||||
- name: Deploy via Rsync & Docker
|
||||
uses: easingthemes/ssh-deploy@a1aa0b6cf96ce2406eef90faa35007a4a7bf0ac0 # v5.1.1
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ env.SSH_PRIVATE_KEY }}
|
||||
REMOTE_HOST: ${{ env.SSH_HOST }}
|
||||
REMOTE_USER: ${{ env.SSH_USER }}
|
||||
REMOTE_PORT: ${{ env.SSH_PORT }}
|
||||
TARGET: ${{ env.REMOTE_PREPROD_PATH }}
|
||||
EXCLUDE: ".git/, .github/"
|
||||
SCRIPT_BEFORE: |
|
||||
mkdir -p ${{ env.REMOTE_PREPROD_PATH }}
|
||||
SCRIPT_AFTER: |
|
||||
set -e
|
||||
cd ${{ env.REMOTE_PREPROD_PATH }}
|
||||
docker compose --env-file preprod.env -f docker-compose.yaml -f docker-compose.prod.yaml up -d --build --remove-orphans --wait
|
||||
|
||||
# # Run E2E Tests
|
||||
# echo "Running E2E tests..."
|
||||
# # Create venv to avoid polluting system python
|
||||
# python3 -m venv .venv
|
||||
# . .venv/bin/activate
|
||||
# source preprod.env
|
||||
# pip install -r tests/e2e/requirements.txt
|
||||
# pytest tests/e2e/
|
||||
# Run E2E Tests
|
||||
echo "Running E2E tests..."
|
||||
# Create venv to avoid polluting system python
|
||||
python3 -m venv .venv
|
||||
. .venv/bin/activate
|
||||
source preprod.env
|
||||
pip install -r tests/e2e/requirements.txt
|
||||
pytest tests/e2e/
|
||||
|
||||
# docker compose --env-file preprod.env -f docker-compose.yaml -f docker-compose.prod.yaml down --remove-orphans
|
||||
docker compose --env-file preprod.env -f docker-compose.yaml -f docker-compose.prod.yaml down --remove-orphans
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# STAGE 4: DEPLOY PRODUCTION
|
||||
@@ -138,7 +138,7 @@ jobs:
|
||||
deploy_prod:
|
||||
name: Deploy (Production)
|
||||
runs-on: ubuntu-latest
|
||||
needs: [deploy_staging]
|
||||
needs: [deploy_preprod]
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
|
||||
Reference in New Issue
Block a user