Testing whether folder works (#26)
Some checks failed
Remote Deployment Pipeline / Prepare Context (push) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 51s
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) Failing after 23m6s
Some checks failed
Remote Deployment Pipeline / Prepare Context (push) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 51s
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) Failing after 23m6s
Reviewed-on: #26 Co-authored-by: kovagoadi <kovagoadi@gmail.com> Co-committed-by: kovagoadi <kovagoadi@gmail.com>
This commit is contained in:
@@ -65,7 +65,7 @@ jobs:
|
||||
SCRIPT_AFTER: |
|
||||
set -e
|
||||
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 --wait
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# STAGE 3: DEPLOY STAGING
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
SCRIPT_AFTER: |
|
||||
set -e
|
||||
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 --wait
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# STAGE 4: DEPLOY PRODUCTION
|
||||
@@ -118,7 +118,16 @@ jobs:
|
||||
SCRIPT_AFTER: |
|
||||
set -e
|
||||
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 --wait
|
||||
|
||||
# Run E2E Tests
|
||||
echo "Running E2E tests..."
|
||||
export CI=true
|
||||
# Create venv to avoid polluting system python
|
||||
python3 -m venv .venv
|
||||
. .venv/bin/activate
|
||||
pip install -r tests/e2e/requirements.txt
|
||||
pytest tests/e2e/
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# CLEANUP (Using appleboy/ssh-action for pure command execution)
|
||||
|
||||
Reference in New Issue
Block a user