Undid workflow changes
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 41s
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Has been skipped

This commit is contained in:
2026-01-15 21:42:20 +01:00
parent 5920529de7
commit d415f0d82f

View File

@@ -12,7 +12,7 @@ env:
REMOTE_DEPLOY_PATH: /var/app/traefik/test REMOTE_DEPLOY_PATH: /var/app/traefik/test
REMOTE_PROD_PATH: /var/app/traefik/prod REMOTE_PROD_PATH: /var/app/traefik/prod
REMOTE_STAGING_PATH: /var/app/traefik/staging REMOTE_STAGING_PATH: /var/app/traefik/staging
REMOTE_PREPROD_PATH: /var/app/traefik/preprod # REMOTE_PREPROD_PATH: /var/app/traefik/preprod
# --- SECRETS --- # --- SECRETS ---
SSH_HOST: ${{ secrets.SSH_HOST }} SSH_HOST: ${{ secrets.SSH_HOST }}
@@ -97,40 +97,40 @@ jobs:
# ------------------------------------------------------------------ # ------------------------------------------------------------------
# STAGE 3.5: DEPLOY PRE-PROD # STAGE 3.5: DEPLOY PRE-PROD
# ------------------------------------------------------------------ # ------------------------------------------------------------------
deploy_preprod: # deploy_preprod:
name: Deploy (Pre-Prod) # name: Deploy (Pre-Prod)
runs-on: ubuntu-latest # runs-on: ubuntu-latest
# needs: [deploy_staging] # # needs: [deploy_staging]
# if: github.ref == 'refs/heads/test_preprod' # # if: github.ref == 'refs/heads/test_preprod'
steps: # steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Deploy via Rsync & Docker # - name: Deploy via Rsync & Docker
uses: easingthemes/ssh-deploy@a1aa0b6cf96ce2406eef90faa35007a4a7bf0ac0 # v5.1.1 # uses: easingthemes/ssh-deploy@a1aa0b6cf96ce2406eef90faa35007a4a7bf0ac0 # v5.1.1
env: # env:
SSH_PRIVATE_KEY: ${{ env.SSH_PRIVATE_KEY }} # SSH_PRIVATE_KEY: ${{ env.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ env.SSH_HOST }} # REMOTE_HOST: ${{ env.SSH_HOST }}
REMOTE_USER: ${{ env.SSH_USER }} # REMOTE_USER: ${{ env.SSH_USER }}
REMOTE_PORT: ${{ env.SSH_PORT }} # REMOTE_PORT: ${{ env.SSH_PORT }}
TARGET: ${{ env.REMOTE_PREPROD_PATH }} # TARGET: ${{ env.REMOTE_PREPROD_PATH }}
EXCLUDE: ".git/, .github/" # EXCLUDE: ".git/, .github/"
SCRIPT_BEFORE: | # SCRIPT_BEFORE: |
mkdir -p ${{ env.REMOTE_PREPROD_PATH }} # mkdir -p ${{ env.REMOTE_PREPROD_PATH }}
SCRIPT_AFTER: | # SCRIPT_AFTER: |
set -e # set -e
cd ${{ env.REMOTE_PREPROD_PATH }} # 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 # docker compose --env-file preprod.env -f docker-compose.yaml -f docker-compose.prod.yaml up -d --build --remove-orphans --wait
# Run E2E Tests # # Run E2E Tests
echo "Running E2E tests..." # echo "Running E2E tests..."
# Create venv to avoid polluting system python # # Create venv to avoid polluting system python
python3 -m venv .venv # python3 -m venv .venv
. .venv/bin/activate # . .venv/bin/activate
source preprod.env # source preprod.env
pip install -r tests/e2e/requirements.txt # pip install -r tests/e2e/requirements.txt
pytest tests/e2e/ # 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 # STAGE 4: DEPLOY PRODUCTION
@@ -138,7 +138,7 @@ jobs:
deploy_prod: deploy_prod:
name: Deploy (Production) name: Deploy (Production)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [deploy_preprod] needs: [deploy_staging]
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
steps: steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6