2026-06-13 02:35:29 +00:00
|
|
|
# Auto-deploy, triggered ONLY by the GitHub Actions build POSTing to the
|
|
|
|
|
# Woodpecker API (manual event, with IMAGE_TAG + IMAGE_NAME) after a successful
|
|
|
|
|
# off-infra build+push to GHCR (ADR-0002). event:[manual] (NOT push) so the
|
|
|
|
|
# Forgejo->GitHub mirror's raw pushes don't fire a spurious deploy.
|
|
|
|
|
# The woodpecker-agent SA is cluster-admin — no kubeconfig needed.
|
|
|
|
|
# Generated by infra/scripts/offinfra-onboard.
|
2026-03-15 23:25:36 +00:00
|
|
|
when:
|
2026-06-04 19:32:02 +00:00
|
|
|
- event: manual
|
2026-03-15 23:25:36 +00:00
|
|
|
|
|
|
|
|
steps:
|
2026-03-15 23:58:09 +00:00
|
|
|
- name: check-vars
|
|
|
|
|
image: alpine
|
|
|
|
|
commands:
|
2026-06-13 02:35:29 +00:00
|
|
|
- "[ -n \"$IMAGE_TAG\" ] || (echo 'IMAGE_TAG not set — refusing to deploy'; exit 1)"
|
2026-03-15 23:58:09 +00:00
|
|
|
|
2026-03-15 23:25:36 +00:00
|
|
|
- name: deploy
|
2026-03-16 00:35:44 +00:00
|
|
|
image: bitnami/kubectl:latest
|
2026-03-15 23:25:36 +00:00
|
|
|
commands:
|
2026-06-13 02:35:29 +00:00
|
|
|
- "kubectl -n claude-memory set image deployment/claude-memory claude-memory=${IMAGE_NAME}:${IMAGE_TAG}"
|
|
|
|
|
- "kubectl -n claude-memory rollout status deployment/claude-memory --timeout=300s"
|