Skip to content

Commit 7fd49a0

Browse files
Update merge-main.yaml
1 parent 2bb4eb6 commit 7fd49a0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/merge-main.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,20 @@ jobs:
5959
ghcr.io/${{ steps.lowercase.outputs.repository_owner_lowercase }}/${{ secrets.DOCKER_IMAGE_NAME }}:prod
6060
cache-from: type=registry,ref=ghcr.io/${{ steps.lowercase.outputs.repository_owner_lowercase }}/${{ secrets.DOCKER_IMAGE_NAME }}:prod
6161
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

Comments
 (0)