Add GitHub Actions CI and ko image release #13

Merged
benvin merged 4 commits from benvin/github-actions into main 2026-11-20 23:59:20 +11:00
Member

Releases move to GitHub Actions on the IUCLabs/encapi mirror so the server image publishes from GitHub instead of Woodpecker.

  • ci.yml runs pre-commit, go vet, go test, go build and a ko image build on PRs and main
  • release.yml on v[0-9]* tags builds ./cmd/encapi with ko and pushes ghcr.io/iuclabs/encapi:{tag,latest} (versioned tag first) with org.opencontainers.image.source
  • .ko.yaml sets the distroless static nonroot base and the version ldflag
  • No RPM or other release artifacts; make rpm and the nfpm/build-rpm packaging are removed
  • Woodpecker release.yaml and docker.yaml are removed
  • .github/CODEOWNERS assigns @IUCLabs/maintainers
Releases move to GitHub Actions on the IUCLabs/encapi mirror so the server image publishes from GitHub instead of Woodpecker. - `ci.yml` runs pre-commit, go vet, go test, go build and a ko image build on PRs and main - `release.yml` on `v[0-9]*` tags builds `./cmd/encapi` with ko and pushes `ghcr.io/iuclabs/encapi:{tag,latest}` (versioned tag first) with `org.opencontainers.image.source` - `.ko.yaml` sets the distroless static nonroot base and the version ldflag - No RPM or other release artifacts; `make rpm` and the nfpm/build-rpm packaging are removed - Woodpecker `release.yaml` and `docker.yaml` are removed - `.github/CODEOWNERS` assigns `@IUCLabs/maintainers`
unkin-agent added 1 commit 2026-11-20 22:11:52 +11:00
Add GitHub Actions CI and GoReleaser release
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci / pre-commit (pull_request) Has been cancelled
ci / lint (pull_request) Has been cancelled
ci / test (pull_request) Has been cancelled
ci / build (pull_request) Has been cancelled
ci / image (pull_request) Has been cancelled
1f0d58e687
Author
Member

No findings.

No findings.
unkin-agent added 1 commit 2026-11-20 23:05:17 +11:00
Release only the encapi image with ko
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci / pre-commit (pull_request) Has been cancelled
ci / lint (pull_request) Has been cancelled
ci / test (pull_request) Has been cancelled
ci / build (pull_request) Has been cancelled
ci / image (pull_request) Has been cancelled
4e7087852c
unkin-agent changed title from Add GitHub Actions CI and GoReleaser release to Add GitHub Actions CI and ko image release 2026-11-20 23:05:24 +11:00
Author
Member
  • .github/workflows/ci.yml:74 — image job runs ko without VERSION set, but .ko.yaml:7 templates {{.Env.VERSION}}; ko errors on an unset env key, so this job fails → add VERSION: ci (or ${{ github.sha }}) to the step env.
  • docs/cutover.md:40 — still says "Install the CLI RPM on the puppet masters"; no RPM is published any more → reword to the new CLI install path, or mark it pending the CLI follow-up PR.
- .github/workflows/ci.yml:74 — `image` job runs ko without `VERSION` set, but `.ko.yaml:7` templates `{{.Env.VERSION}}`; ko errors on an unset env key, so this job fails → add `VERSION: ci` (or `${{ github.sha }}`) to the step `env`. - docs/cutover.md:40 — still says "Install the CLI RPM on the puppet masters"; no RPM is published any more → reword to the new CLI install path, or mark it pending the CLI follow-up PR.
unkin-agent added 1 commit 2026-11-20 23:08:32 +11:00
Set VERSION for ko image build; drop stale CLI RPM step from cutover doc
ci / pre-commit (pull_request) Has been cancelled
ci / lint (pull_request) Has been cancelled
ci / test (pull_request) Has been cancelled
ci / build (pull_request) Has been cancelled
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci / image (pull_request) Has been cancelled
ba4126054c
Author
Member
  • packaging/encapi-enc, packaging/enc.conf, packaging/scripts/preinstall.sh — orphaned RPM payload, nothing consumes them after nfpm.yaml/build-rpm.sh removal → delete packaging/.
  • docs/cutover.md:40 — still prescribes external_nodes = /usr/local/bin/encapi-enc and says encapi-enc <certname> runs the CLI, but nothing installs that wrapper any more; "The original exec wrapper setup was:" leaves it ambiguous whether to follow it → rewrite step 2 to describe only the encapic setup (drop the exec snippet and wrapper paragraph).
  • README.md:13 — encapi-enc still listed as a component → drop the row (or say it is no longer shipped).
- packaging/encapi-enc, packaging/enc.conf, packaging/scripts/preinstall.sh — orphaned RPM payload, nothing consumes them after nfpm.yaml/build-rpm.sh removal → delete `packaging/`. - docs/cutover.md:40 — still prescribes `external_nodes = /usr/local/bin/encapi-enc` and says `encapi-enc <certname>` runs the CLI, but nothing installs that wrapper any more; "The original exec wrapper setup was:" leaves it ambiguous whether to follow it → rewrite step 2 to describe only the `encapic` setup (drop the exec snippet and wrapper paragraph). - README.md:13 — `encapi-enc` still listed as a component → drop the row (or say it is no longer shipped).
unkin-agent added 1 commit 2026-11-20 23:39:11 +11:00
Let ko install pick its Go toolchain
ci / pre-commit (pull_request) Has been cancelled
ci / lint (pull_request) Has been cancelled
ci / test (pull_request) Has been cancelled
ci / build (pull_request) Has been cancelled
ci / image (pull_request) Has been cancelled
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
83ab71b3df
benvin merged commit 5fba4327db into main 2026-11-20 23:59:20 +11:00
benvin deleted branch benvin/github-actions 2026-11-20 23:59:20 +11:00
This repo is archived. You cannot comment on pull requests.