Add webhook notification step to release workflow
After publishing a GitHub Release, notify towerops.net to trigger mass agent updates via the new webhook endpoint.
This commit is contained in:
parent
9db47e22d1
commit
28571b0243
1 changed files with 8 additions and 0 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -317,3 +317,11 @@ jobs:
|
|||
towerops-agent-linux-amd64.sha256
|
||||
towerops-agent-linux-arm64
|
||||
towerops-agent-linux-arm64.sha256
|
||||
|
||||
- name: Notify agents of new release
|
||||
if: success()
|
||||
run: |
|
||||
curl -sf -X POST \
|
||||
-H "Authorization: Bearer ${{ secrets.AGENT_WEBHOOK_SECRET }}" \
|
||||
https://towerops.net/api/v1/webhooks/agent-release
|
||||
continue-on-error: true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue