Skip to content

Commit

Permalink
fix data persistance by removing docker compose down step
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousdev-gh committed Aug 27, 2024
1 parent eabc180 commit de65bd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/deploy-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,4 +32,4 @@ jobs:
- name: dev up
env:
SERVICE_HOST: ${{ vars.SERVICE_HOST }}
run: docker compose up -d
run: docker compose up --build -d
1 change: 0 additions & 1 deletion urlshortener/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ services:

volumes:
db-data:
external: true

# secrets:
# db-password:
Expand Down

0 comments on commit de65bd0

Please sign in to comment.