34 lines
998 B
YAML
34 lines
998 B
YAML
|
|
- id: queue-restic-snapshot
|
||
|
|
pass-environment-to-command:
|
||
|
|
- source: payload
|
||
|
|
name: version
|
||
|
|
- source: payload
|
||
|
|
name: path
|
||
|
|
- source: payload
|
||
|
|
name: tag
|
||
|
|
- source: payload
|
||
|
|
name: request_id
|
||
|
|
trigger-rule:
|
||
|
|
# - match:
|
||
|
|
# type: payload-hmac-sha256
|
||
|
|
# secret: '{{ cat "/run/secrets/instance_control_webhooks_secret" }}'
|
||
|
|
# parameter:
|
||
|
|
# source: header
|
||
|
|
# name: X-Nassella-Signature
|
||
|
|
execute-command: "/etc/webhook/queue-restic-snapshot.sh"
|
||
|
|
- id: restic-snapshot-status
|
||
|
|
include-command-output-in-response: true
|
||
|
|
pass-environment-to-command:
|
||
|
|
- source: payload
|
||
|
|
name: version
|
||
|
|
- source: payload
|
||
|
|
name: request_id
|
||
|
|
# trigger-rule:
|
||
|
|
# - match:
|
||
|
|
# type: payload-hmac-sha256
|
||
|
|
# secret: '{{ cat "/run/secrets/instance_control_webhooks_secret" }}'
|
||
|
|
# parameter:
|
||
|
|
# source: header
|
||
|
|
# name: X-Nassella-Signature
|
||
|
|
execute-command: "/etc/webhook/restic-snapshot-status.sh"
|