๐Ÿ“ฆ wrussell1999 / kestra-examples

๐Ÿ“„ ssh-webhook.yml ยท 18 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18id: ssh_auto_pull
namespace: company.team

tasks:
  - id: connect_to_ssh
    type: io.kestra.plugin.fs.ssh.Command
    host: whisper.pi.willr.uk
    authMethod: PUBLIC_KEY
    username: wrussell
    privateKey: "{{ kv('SSH_KEY') }}"
    commands:
      - cd /home/wrussell/ssh-example
      - git pull

triggers:
  - id: webhook
    type: io.kestra.plugin.core.trigger.Webhook
    key: abcdefg