Skip to content

Commit

Permalink
fix(deploy): update workflows #4
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalpa committed Jul 13, 2024
1 parent d470d66 commit 948cee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
username: ${{ secrets.GCP_USER }}
key: ${{ secrets.GCP_SSH_PRIVATE_KEY }}
script: |
echo '"DATABASE_URL="postgresql://${{ vars.DATABASE_USERNAME }}:${{ vars.DATABASE_PASSWORD }}@${{ vars.DATABASE_HOST }}:5432/${{ vars.DATABASE_NAME }}?schema=public"' >> .env
echo "DATABASE_URL=postgresql://${{ vars.DATABASE_USERNAME }}:${{ vars.DATABASE_PASSWORD }}@${{ vars.DATABASE_HOST }}:5432/${{ vars.DATABASE_NAME }}?schema=public" >> .env
docker compose -f /home/${{ secrets.GCP_USER }}/docker-compose.yml down
docker compose -f /home/${{ secrets.GCP_USER }}/docker-compose.yml up --pull always -d
docker image prune -f -a

0 comments on commit 948cee0

Please sign in to comment.