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: