Skip to content

Deployment webhook (Matchmaking & Game) #36

Deployment webhook (Matchmaking & Game)

Deployment webhook (Matchmaking & Game) #36

name: Deployment webhook (Matchmaking & Game)
# Only trigger when the specified workflows have succeeded
on:
workflow_run:
workflows: ['Build and Publish "Game" Docker Image', 'Build and Publish "Matchmaking" Docker Image']
types:
- completed
jobs:
notify:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- name: Trigger deployment webhook
run: |
curl -X POST -H "Content-Type: application/json" -d '{}' http://webhooks.ivo-zilkenat.de/hooks/distributed-systems-io-deploy?secret=${{ secrets.WEBHOOK_SECRET }}