diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5cef4a0..9a5e05d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -22,17 +22,7 @@ jobs: run: | docker pull muneer1997/demo_php:latest docker pull muneer1997/demo_nginx:latest - # - name: Fix Permissions - # run: | - # sudo chmod -R 775 vendor - # sudo chown -R $USER:$USER vendor - - # - name: Clean Vendor Directory - # run: | - # if [ -d "vendor" ]; then - # chmod -R 775 vendor - # rm -rf vendor - # fi + - name: Stop and remove existing containers run: | docker-compose down || true @@ -41,6 +31,10 @@ jobs: run: | docker-compose up -d + - name: Run composer install + run: | + docker-compose exec -T demo_php composer install + - name: Clean up old images run: | docker image prune -f