Skip to content

Commit

Permalink
Merge pull request #1590 from bakaphp/feat-ec2-deploy-prod
Browse files Browse the repository at this point in the history
made changes to the conditional
  • Loading branch information
rwhite27 authored Jun 30, 2024
2 parents 66daff6 + cb1d690 commit 7428782
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ec2-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:
script: |
cd ${{secrets.AWS_EC2_TARGET_DIR}}
docker compose -f docker-compose.${{ github.ref_name }}.yml up -d
if "docker-compose.${{ github.ref_name }}.yml" == "docker-compose.1.x.yml" then
docker exec -i phpkanvas-ecosystem composer install --no-dev --optimize-autoloader
if ["docker-compose.${{ github.ref_name }}.yml" == "docker-compose.1.x.yml"]; then
docker exec -i phpkanvas-ecosystem composer install --no-dev --optimize-autoloader;
else
docker exec -i phpkanvas-ecosystem composer install --optimize-autoloader
docker exec -i phpkanvas-ecosystem composer install --optimize-autoloader;
fi
docker exec -i phpkanvas-ecosystem php artisan lighthouse:cache
docker exec -i phpkanvas-ecosystem php artisan config:cache
Expand Down

0 comments on commit 7428782

Please sign in to comment.