All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 2s
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
name: Trigger Cloudarix Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- development
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
call-webhook:
|
|
runs-on: [cloudarix]
|
|
container:
|
|
image: curlimages/curl:latest
|
|
steps:
|
|
- name: Send deploy webhook
|
|
run: |
|
|
curl -X POST \
|
|
-H "X-Gitea-Event: Push Hook" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"ref": "refs/heads/development"}' \
|
|
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"
|
|
|
|
- name: Trigger worker-specific deploy webhook (direct)
|
|
run: |
|
|
curl -X POST \
|
|
-H "X-Gitea-Event: Push Hook" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"ref": "refs/heads/development"}' \
|
|
https://system.cloudarix.de/api/deploy/H6z3uGPGM1VgZelwaB9wk
|
|
|