From de65bd093c89de85ecaeed4ebf50115134cd27f7 Mon Sep 17 00:00:00 2001 From: serious_dev Date: Tue, 27 Aug 2024 21:50:28 +0300 Subject: [PATCH] fix data persistance by removing docker compose down step --- .github/workflows/deploy-job.yml | 12 ++---------- urlshortener/compose.yaml | 1 - 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-job.yml b/.github/workflows/deploy-job.yml index 37a4837..eed0c7c 100644 --- a/.github/workflows/deploy-job.yml +++ b/.github/workflows/deploy-job.yml @@ -21,17 +21,9 @@ jobs: run: docker compose run --build --rm test server db_setup test - name: run tests run: docker compose run --rm test tests - prepare-environment: - needs: test - runs-on: self-hosted - steps: - - name: Stop and remove containers, networks - run: docker compose down - # - name: Remove unused data - # run: docker system prune -a -f deploy: runs-on: self-hosted - needs: prepare-environment + needs: test steps: - name: checkout repo uses: actions/checkout@v4 @@ -40,4 +32,4 @@ jobs: - name: dev up env: SERVICE_HOST: ${{ vars.SERVICE_HOST }} - run: docker compose up -d \ No newline at end of file + run: docker compose up --build -d \ No newline at end of file diff --git a/urlshortener/compose.yaml b/urlshortener/compose.yaml index cd87a60..7e72358 100644 --- a/urlshortener/compose.yaml +++ b/urlshortener/compose.yaml @@ -55,7 +55,6 @@ services: volumes: db-data: - external: true # secrets: # db-password: