Skip to content

Commit

Permalink
Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreGauthier committed Jun 17, 2024
1 parent a3146cf commit 48c0422
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
[ -d cert ] || cp -r ../certs ./ &&
docker system prune -af &&
([[ $(docker volume ls -q | awk '!/_/' | wc -l) -eq 0 ]] || docker volume rm $(docker volume ls -q | awk '!/_/' | tr '\n' ' ')) &&
docker compose down &&
docker compose run --rm php rm -rf vendor composer.lock &&
docker compose -f docker-compose.yml -f docker-compose.inte.yml down &&
docker compose -f docker-compose.yml -f docker-compose.inte.yml run --rm php 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 &&
docker compose run -f docker-compose.yml -f docker-compose.inte.yml --rm php chown www-data:www-data -R public/media &&
docker compose run -f docker-compose.yml -f docker-compose.inte.yml --rm php bin/console doctrine:migrations:migrate &&
docker compose -f docker-compose.yml -f docker-compose.inte.yml up -d --build &&
docker compose exec php bin/console cache:clear
docker compose -f docker-compose.yml -f docker-compose.inte.yml exec php bin/console cache:clear
"

0 comments on commit 48c0422

Please sign in to comment.