ci: trigger worker deployment webhook (tenantpilot-worker) from deploy workflow
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s
This commit is contained in:
parent
b360c3311c
commit
ecb606c038
18
.github/workflows/deploy.yml
vendored
18
.github/workflows/deploy.yml
vendored
@ -19,3 +19,21 @@ jobs:
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"ref": "refs/heads/development"}' \
|
-d '{"ref": "refs/heads/development"}' \
|
||||||
https://system.cloudarix.de/api/deploy/ph8pjvF1mWZUrjBDql-eE
|
https://system.cloudarix.de/api/deploy/ph8pjvF1mWZUrjBDql-eE
|
||||||
|
- name: Trigger tenantpilot-worker via same deploy webhook (worker signal)
|
||||||
|
run: |
|
||||||
|
curl -X POST \
|
||||||
|
-H "X-Gitea-Event: Push Hook" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d '{"ref": "refs/heads/development", "app": "tenantpilot-worker"}' \
|
||||||
|
https://system.cloudarix.de/api/deploy/ph8pjvF1mWZUrjBDql-eE
|
||||||
|
|
||||||
|
- name: Trigger worker-specific deploy webhook (if provided)
|
||||||
|
if: ${{ secrets.CLOUDARIX_WORKER_DEPLOY_WEBHOOK }}
|
||||||
|
env:
|
||||||
|
WEBHOOK_URL: ${{ secrets.CLOUDARIX_WORKER_DEPLOY_WEBHOOK }}
|
||||||
|
run: |
|
||||||
|
curl -X POST \
|
||||||
|
-H "X-Gitea-Event: Push Hook" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d '{"ref": "refs/heads/development"}' "$WEBHOOK_URL"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user