mirror of
https://github.com/allaunthefox/SilverSight.git
synced 2026-07-31 01:25:21 +00:00
- Add .sops.yaml (workstation + cluster age keys) - Add infra/secrets/homarr-values.enc.yaml (SOPS encrypted) - Add infra/secrets/authentik-values.enc.yaml (SOPS encrypted) - Add infra/secrets/webhook-secret.enc.yaml (SOPS encrypted) - Add infra/webhook/hooks.yaml (adnanh/webhook config) - Add infra/webhook/deploy.sh (SOPS decrypt + helm upgrade) - Add infra/webhook/deployment.yaml (k3s Deployment + RBAC) age keys: workstation: age17nzzwaftrkcuerlt4vq2eh98fdfxnv3eqykdxf5c3hqa0pvc2uhq26dxeq cluster: age1s6t5qpt0h7xlj98zkza0e7pjzj686k38xdu7jrz0nsreaw092drq4v7h02 Cluster private key stored only in k8s secret sops-age (namespace: infra).
23 lines
583 B
YAML
23 lines
583 B
YAML
- id: deploy
|
|
execute-command: /scripts/deploy.sh
|
|
command-working-directory: /repos
|
|
pass-arguments-to-command:
|
|
- source: payload
|
|
name: repository.name
|
|
response-message: "Deploy triggered"
|
|
trigger-rule:
|
|
and:
|
|
- match:
|
|
type: payload-hmac-sha256
|
|
secret:
|
|
source: env
|
|
name: WEBHOOK_SECRET
|
|
parameter:
|
|
source: header
|
|
name: X-Hub-Signature-256
|
|
- match:
|
|
type: value
|
|
value: refs/heads/main
|
|
parameter:
|
|
source: payload
|
|
name: ref
|