Skip to content

Commit

Permalink
Merge pull request #1592 from bakaphp/development
Browse files Browse the repository at this point in the history
Release ec2 deploy
  • Loading branch information
rwhite27 committed Jul 1, 2024
2 parents 7a66fc4 + 5713749 commit 377c8bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ec2-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ jobs:
key: ${{ secrets.AWS_EC2_PRIVATE_SSH_KEY }}
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-compose -f docker-compose.${{ github.ref_name }}.yml up -d
docker exec -i phpkanvas-ecosystem composer install --no-dev --optimize-autoloader;
else
docker compose -f docker-compose.${{ github.ref_name }}.yml up -d
docker exec -i phpkanvas-ecosystem composer install --optimize-autoloader;
fi
docker exec -i phpkanvas-ecosystem php artisan lighthouse:cache
Expand Down

0 comments on commit 377c8bb

Please sign in to comment.