Skip to content

Commit

Permalink
fix: rewrite invalid env injection command
Browse files Browse the repository at this point in the history
  • Loading branch information
Grantzile committed Jan 13, 2025
1 parent cb36d2f commit 224d787
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ jobs:
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
script: |
echo "Starting containers..."
docker compose up -d myapp \
--env SPRING_DATASOURCE_URL="${{ secrets.SPRING_DATASOURCE_URL }}" \
--env SPRING_DATASOURCE_USERNAME="${{ secrets.SPRING_DATASOURCE_USERNAME }}" \
--env SPRING_DATASOURCE_PASSWORD="${{ secrets.SPRING_DATASOURCE_PASSWORD }}"
docker compose --env-file <(echo "
SPRING_DATASOURCE_URL=${{ secrets.SPRING_DATASOURCE_URL }}
SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME }}
SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD }}
") up -d myapp

0 comments on commit 224d787

Please sign in to comment.