21 lines
957 B
YAML
21 lines
957 B
YAML
|
|
# 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.
|
||
|
|
when:
|
||
|
|
- event: manual
|
||
|
|
|
||
|
|
steps:
|
||
|
|
- name: check-vars
|
||
|
|
image: alpine
|
||
|
|
commands:
|
||
|
|
- "[ -n \"$IMAGE_TAG\" ] || (echo 'IMAGE_TAG not set — refusing to deploy'; exit 1)"
|
||
|
|
|
||
|
|
- name: deploy
|
||
|
|
image: bitnami/kubectl:latest
|
||
|
|
commands:
|
||
|
|
- "kubectl -n claude-agent set image deployment/claude-agent-service claude-agent-service=${IMAGE_NAME}:${IMAGE_TAG} git-init=${IMAGE_NAME}:${IMAGE_TAG} seed-beads-agent=${IMAGE_NAME}:${IMAGE_TAG}"
|
||
|
|
- "kubectl -n claude-agent rollout status deployment/claude-agent-service --timeout=300s"
|