Skip to content

Commit

Permalink
chore: Refactor Dockerfile paths for improved configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Muneer-Shafi committed Jan 5, 2025
1 parent 05bc5cd commit 48c3c8c
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 48c3c8c

Please sign in to comment.