Skip to content

Commit

Permalink
Update deploy_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Garima Ketan Chauhan authored and GitHub Enterprise committed Apr 2, 2025
1 parent 88f6aee commit 7bd7db9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ jobs:
export-variables: true
keys-case: bypass

- name: Remove all previous containers (staging & production)
- name: Remove previous containers
run: |
echo "Removing all previous containers (staging & production)"
docker compose -f docker-compose.stag.yml down || true
docker compose -f $COMPOSE_FILE down || true
docker system prune -af || true
docker rm -f secfit_stag_backend || true
- name: Set up test containers
run: docker compose -f docker-compose.stag.yml up --build -d

Expand All @@ -40,6 +37,9 @@ jobs:
- name: Tear down test containers
run: docker compose -f docker-compose.stag.yml down

- name: Tear down previous production containers (if any)
run: docker compose -f $COMPOSE_FILE down || true

- name: Build and run docker image
run: docker compose -f $COMPOSE_FILE up --force-recreate --build -d

Expand Down

0 comments on commit 7bd7db9

Please sign in to comment.