1.5 KiB
1.5 KiB
type, title, description, tags, status, generated
| type | title | description | tags | status | generated | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pipeline | Delivery | Gitea Actions on the home server scan, build, push to the Gitea registry, deploy with kubectl, and version with release-please. |
|
stable |
|
Pipeline
push to main ─► Gitea Actions (runner on the home server)
├─ go test ./...
├─ snyk test
├─ build images: gateway (with Nuxt), chapter
├─ push to the Gitea container registry
└─ kubectl apply -k deploy/
─► release-please (Gitea variant) opens a release PR; merging it tags the version
Details
- Commits: Conventional Commits.
feat:bumps minor,fix:bumps patch,docs:andchore:do not release. - Image tags: the git SHA, so every deploy is traceable.
- Registry pull: k3s needs an
imagePullSecretfor the Gitea registry, or/etc/rancher/k3s/registries.yamlif the registry is plain HTTP. - Runner permissions: a kubeconfig for a ServiceAccount that can only
manage resources in
cv. - Jobs are immutable: changing a completed chapter's Job spec needs a delete before apply. Rare, since finished chapters do not change.
- Snyk: needs a
SNYK_TOKENsecret in Gitea.
Later
- k6 as a release gate needs a staging target. See open questions.