Skip to content

Commit

Permalink
feat: update docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalpa committed Jul 13, 2024
1 parent 948cee0 commit e3319d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
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
sed -i -e 's/iqbalpa\/backend-movies/${{ secrets.DOCKERHUB_USERNAME }}\/${{ vars.DOCKER_IMAGE_NAME }}/g' docker-compose.yml
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 e3319d4

Please sign in to comment.