diff --git a/.github/workflows/pipeline-develop.yml b/.github/workflows/pipeline-develop.yml index 7786ad5..c706ce0 100644 --- a/.github/workflows/pipeline-develop.yml +++ b/.github/workflows/pipeline-develop.yml @@ -23,5 +23,6 @@ jobs: git pull docker compose stop devouch squid-db docker compose rm -v -f devouch squid-db - docker rmi $(docker images | grep 'devouch' | awk '{print $3}') + docker rmi -f $(docker images | grep 'devouch' | awk '{print $3}') + docker volume rm $(docker volume ls | grep 'db-data' | awk '{print $2}') docker compose up -d --build diff --git a/.github/workflows/stop-devouch.yml b/.github/workflows/stop-devouch.yml index 4366760..bd89580 100644 --- a/.github/workflows/stop-devouch.yml +++ b/.github/workflows/stop-devouch.yml @@ -20,4 +20,5 @@ jobs: cd $HOME/DeVouch-BE docker compose stop devouch squid-db docker compose rm -f -v devouch squid-db - docker rmi $(docker images | grep 'devouch' | awk '{print $3}') + docker rmi -f $(docker images | grep 'devouch' | awk '{print $3}') + docker volume rm $(docker volume ls | grep 'db-data' | awk '{print $2}')