Skip to content

Commit

Permalink
skip cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Jul 22, 2024
1 parent 978e0f8 commit 2e56b77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ jobs:
docker compose up --no-build --pull never --wait db
- name: Prepare and build API container
env:
SKIP_CLEANUP: 'yes'
run: |
api/prepare-api.sh
Expand Down
4 changes: 2 additions & 2 deletions api/prepare-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ echo 'Building API container'
docker compose build api

echo 'Cleaning up'
rm -rf api/postgres-data
rm api/api.sql
[ -n "$SKIP_CLEANUP" ] || rm -rf api/postgres-data
[ -n "$SKIP_CLEANUP" ] || rm -f api/api.sql

0 comments on commit 2e56b77

Please sign in to comment.