Skip to content

Commit

Permalink
Fix docker volume cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreGauthier committed Jun 17, 2024
1 parent c027a11 commit 736fa33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
cd /home/ubuntu/sylius &&
[ -d cert ] || cp -r ../certs ./ &&
docker system prune -af &&
([[ $(docker volume ls -q | awk '!/_/' | tr '\n' ' ' | wc -l) -eq 0 ]] || docker volume rm $(docker volume ls -q | awk '!/_/' | tr '\n' ' ')) &&
([[ $(docker volume ls -q | awk '!/_/' | wc -l) -eq 0 ]] || docker volume rm $(docker volume ls -q | awk '!/_/' | tr '\n' ' ')) &&
docker compose down &&
rm composer.lock -f &&
rm -rf vendor composer.lock &&
git fetch --all && git reset --hard && git checkout ${{ env.BRANCH }} &&
docker compose run --rm php chown www-data:www-data -R public/media &&
docker compose run --rm php bin/console doctrine:migrations:migrate &&
Expand Down

0 comments on commit 736fa33

Please sign in to comment.