Files
KNELBMS/packages/deploy_pipeline.yaml
T
mrcharles 751bf1c396 fix(deploy): self-diagnosing sha sensor + drop invalid not-key [#734]
Gitea response came back a dict (error body) - sensor state now shows
the truncated body so one restart identifies it. not: rejected by
trigger schema; guard lives in the condition template already.
Detail: https://projects.knownelement.com/issues/734
2026-09-02 22:30:16 -05:00

20 lines
1.0 KiB
YAML

# Deploy pipeline [#734]: gitea master-HEAD sha watcher. Feeds the
# sha-watch deploy automation (reload-only apply). The gitea webhook
# (gitea hook #10 -> pfv_deploy_git_webhook automation) is the fast path
# with full restart mapping, but gitea cannot deliver webhooks to
# CGNAT-range targets until its [webhook] ALLOWED_HOST_LIST is widened
# (founder action via Cloudron file manager); this watcher is the
# always-works safety net.
rest:
- resource: https://git.knownelement.com/api/v1/repos/KNEL/pfv-bms/commits?limit=1
headers:
Authorization: Bearer !secret gitea_deploy_watch_token
User-Agent: pfv-bms-deploy-watch
scan_interval: 300
verify_ssl: true
sensor:
- name: PFV deploy gitea master head
unique_id: pfv_deploy_gitea_master_head
availability: "{{ value_json is defined and value_json is list and value_json | length > 0 }}"
value_template: "{{ value_json[0].sha if value_json is list and value_json | length > 0 else (value_json | string | truncate(90)) }}"