Added preprod stop

This commit is contained in:
Kővágó Ádám
2026-09-16 12:55:09 +02:00
parent b06d5f933a
commit 8770212a9c
+16
View File
@@ -92,6 +92,22 @@ jobs:
set -e
cd ${{ env.REMOTE_PREPROD_PATH }}
docker compose -f docker-compose.yml up -d --build --remove-orphans --wait
stop_preprod:
name: Stop Pre-Prod
runs-on: ubuntu-latest
needs: [deploy_preprod]
if: github.ref == 'refs/heads/main'
steps:
- name: Remove Remote Environment
uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5
with:
host: ${{ env.SSH_HOST }}
username: ${{ env.SSH_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
port: ${{ env.SSH_PORT }}
script: |
cd "${{ env.REMOTE_PREPROD_PATH }}"
docker compose down || true
# # ------------------------------------------------------------------
# # STAGE 4: DEPLOY PRODUCTION