ci: move image build off-infra to GHA -> ghcr (ADR-0002)
Some checks failed
Build and Push / lint-and-test (push) Has been cancelled
Installer Smoke / installer-smoke-ubuntu (push) Has been cancelled
Installer Smoke / installer-smoke-windows (push) Has been cancelled
Build and Push / build (push) Has been cancelled
Build and Push / deploy (push) Has been cancelled
Build and Push / notify-failure (push) Has been cancelled
Some checks failed
Build and Push / lint-and-test (push) Has been cancelled
Installer Smoke / installer-smoke-ubuntu (push) Has been cancelled
Installer Smoke / installer-smoke-windows (push) Has been cancelled
Build and Push / build (push) Has been cancelled
Build and Push / deploy (push) Has been cancelled
Build and Push / notify-failure (push) Has been cancelled
Generated by infra/scripts/offinfra-onboard: GHA builds+tests on the GitHub mirror, pushes ghcr.io/viktorbarzin/beadboard, then triggers the Woodpecker deploy (repo 204). Old in-cluster build pipeline removed: .woodpecker.yml Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
cae683d882
commit
20f07e9fba
3 changed files with 135 additions and 28 deletions
20
.woodpecker/deploy.yml
Normal file
20
.woodpecker/deploy.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# 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 beads-server set image deployment/beadboard beadboard=${IMAGE_NAME}:${IMAGE_TAG}"
|
||||
- "kubectl -n beads-server rollout status deployment/beadboard --timeout=300s"
|
||||
Loading…
Add table
Add a link
Reference in a new issue