Webhook Relay
Search…
Execute shell scripts on remote machines
Learn how to execute scripts and executables when webhooks are received.
Sometimes you need to run scripts on remote machines triggered by webhooks from Github, DockerHub or just Slack slash command. To do that, you can use relay forward command with --relayer exec option:
1
relay forward --bucket my-bucket-name --relayer exec --command bash update.sh
Copied!
Where update.sh contents:
1
#!/bin/bash
2
git pull
3
docker-compose up -d
Copied!
This would pull latest manifest of your docker-compose.yml and restart containers with new versions.
Copy link