24 lines
649 B
YAML
24 lines
649 B
YAML
- id: deploy
|
|
execute-command: "/var/ingress.tjo.cloud/install.sh"
|
|
command-working-directory: "/var/ingress.tjo.cloud/"
|
|
pass-arguments-to-command:
|
|
- source: payload
|
|
name: "head_commit.id"
|
|
- source: payload
|
|
name: "pusher.name"
|
|
- source: payload
|
|
name: "pusher.email"
|
|
trigger-rule:
|
|
and:
|
|
- match:
|
|
type: payload-hmac-sha256
|
|
secret: "FIGURE_OUT_HOW_TO_SET_THIS"
|
|
parameter:
|
|
source: header
|
|
name: X-Forgejo-Signature
|
|
- match:
|
|
type: value
|
|
value: "push"
|
|
parameter:
|
|
source: ref
|
|
ref: "ref/heads/main"
|