We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bb4eb6 commit 7fd49a0Copy full SHA for 7fd49a0
1 file changed
.github/workflows/merge-main.yaml
@@ -59,3 +59,20 @@ jobs:
59
ghcr.io/${{ steps.lowercase.outputs.repository_owner_lowercase }}/${{ secrets.DOCKER_IMAGE_NAME }}:prod
60
cache-from: type=registry,ref=ghcr.io/${{ steps.lowercase.outputs.repository_owner_lowercase }}/${{ secrets.DOCKER_IMAGE_NAME }}:prod
61
cache-to: type=inline
62
+
63
+ deployment:
64
+ needs: [build-push]
65
+ runs-on: ubuntu-latest
66
+ if: always() && needs.build-push.result == 'success'
67
68
+ steps:
69
+ - name: Trigger PaaS deployment
70
+ run: |
71
+ curl -X 'POST' \
72
+ '${{ secrets.PAAS_API_URL }}/application.deploy' \
73
+ -H 'accept: application/json' \
74
+ -H 'Content-Type: application/json' \
75
+ -H 'x-api-key: ${{ secrets.PAAS_API_TOKEN }}' \
76
+ -d '{
77
+ "applicationId": "${{ secrets.PAAS_APPLICATION_ID }}"
78
+ }'
0 commit comments