Execute shell scripts on remote machines

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:

relay forward --bucket my-bucket-name --relayer exec --command bash update.sh

Where update.sh contents:

#!/bin/bash
git pull
docker-compose up -d

This would pull latest manifest of your docker-compose.yml and restart containers with new versions.