diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f55e47f..11d2737 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,3 +19,21 @@ jobs: -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" +