From 2e56b7784c223adc781e535064458b8c256897c2 Mon Sep 17 00:00:00 2001 From: Hidde Wieringa Date: Mon, 22 Jul 2024 21:37:18 +0200 Subject: [PATCH] skip cleanup --- .github/workflows/deploy.yml | 2 ++ api/prepare-api.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 53771d8f..1c7dec67 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/api/prepare-api.sh b/api/prepare-api.sh index 2d0cc494..674be2e3 100755 --- a/api/prepare-api.sh +++ b/api/prepare-api.sh @@ -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