Commit Graph

17 Commits

Author SHA1 Message Date
unkin-agent 9269d71907 Put GOPATH/bin on PATH so go install-ed tools run
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
A step that runs `go install <tool>@<version>` and then invokes the tool fails
with exit 127: the binary lands in $GOPATH/bin, which nothing adds to PATH, and
GOPATH defaults to /root/go. Pipelines moving here from docker.io/golang, where
/go/bin is on PATH, break on that difference.

- Set GOPATH=/go and prepend /go/bin to PATH, matching the official golang images.
- Create /go/bin mode 1777 so go install also works if the image runs as non-root.
- Document the installed-tool contract in the README.
2026-10-03 00:03:17 +10:00
benvin 066e56ade8 Merge pull request 'Build on container-base almalinux9 0.1.3' (#5) from container-base-0-1-3 into main
ci/woodpecker/tag/docker Pipeline was successful
Reviewed-on: #5
v0.1.2
2026-10-02 23:28:27 +10:00
unkin-agent 7b8dfe2663 Build on container-base almalinux9 0.1.3
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
The 0.1.0 base shipped only the root CA in unkin-ca-certificates, so
s3.ceph.unkin.net — a bare leaf issued by the intermediate — failed to
verify and the baked-in go-cache-plugin could never reach the shared
build cache. 0.1.3 ships both anchors.

- Bump BASE_VERSION to 0.1.3.
2026-10-02 23:23:40 +10:00
benvin 280e5120ab Merge pull request 'docker: do not publish a floating :latest' (#4) from container-tag-aliases into main
ci/woodpecker/tag/docker Pipeline was successful
Reviewed-on: #4
v0.1.1
2026-10-02 21:47:35 +10:00
unkin-agent 6fc7bb8521 README: scope the no-floating-tag line to what this repo publishes
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
The previous wording claimed nothing in the estate floats, which the workflows
themselves contradict — they pull the plugin image by a floating tag.
2026-09-28 23:53:22 +10:00
unkin-agent 0ecf51dc26 docker: do not publish a floating :latest
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
A floating tag silently substitutes the image under consumers who did not ask
for a new one — the same hazard already avoided by pinning the pre-commit step.

Alias only :<version> onto the default distro's build.
Drop the :latest references from the README, distro.env and check-distros.
2026-09-28 23:39:37 +10:00
benvin 182abc68de Merge pull request 'docker: alias the default tags instead of rebuilding them' (#3) from container-tag-aliases into main
Reviewed-on: #3
2026-09-28 22:52:45 +10:00
unkin-agent 2c39a17e69 docker: alias the default tags instead of rebuilding them
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
The unsuffixed :<version> and :latest came from a second, independent buildx
step, so they resolved to a different digest than :<version>-<suffix> — nobody
had tested the bits consumers pin. Published v0.1.0 shows it: the amd64 children
share four layers and differ in the top one.

Retag the manifest the matrix step just pushed with imagetools create.
Drop the duplicate build.
2026-09-28 22:42:23 +10:00
benvin 58629c0bdc Merge pull request 'pre-commit: run on the estate-built gobuilder image' (#2) from container-precommit-image into main
Reviewed-on: #2
2026-09-28 22:16:30 +10:00
unkin-agent 2399a10cd4 pre-commit: run on the estate-built gobuilder image
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
The step needs uvx, so it ran on the packer-built almalinux9-gobuilder —
the image these repos exist to replace.

- switch the pre-commit step to docker-internal/gobuilder:0.1.0-alma9
2026-09-28 21:29:18 +10:00
benvin 8a41e9ba03 Merge pull request 'Add matrixed gobuilder image build' (#1) from container-scaffold into main
ci/woodpecker/tag/docker Pipeline was successful
Reviewed-on: #1
v0.1.0
2026-09-27 23:34:31 +10:00
unkin-agent 83beaff2db Get the internal CA into the buildkit container via registry
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
The buildkit_config setting does not exist in the plugin-docker-buildx build
we run: the binary has no PLUGIN_BUILDKIT_CONFIG, so the block was dead YAML
and `docker buildx create` ran without --config, leaving the spawned buildkit
container with no internal CA. The plugin only writes a buildkit.toml
(pointing at /etc/docker/certs.d/<registry>/ca.crt) when `registry` is set.

Set registry on the build step, drop the dead block from every step, and
fail ci/check-distros.sh when a matrix value restating a distro.env key
drifts from it.
2026-09-27 22:19:24 +10:00
unkin-agent 06b159694c Replace pre-commit.sh with the pre-commit framework and drop the test harness
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline was successful
The hand-rolled pre-commit.sh reimplemented what upstream hooks already do.
Move to pre-commit.com with the estate's usual pre-commit-hooks set plus
hadolint and shellcheck, and keep the one check with no upstream equivalent
(distros/ vs the Woodpecker matrices) as a repo: local hook.

The test harness goes; tests will be reintroduced differently.

- add .pre-commit-config.yaml and ci/check-distros.sh
- delete pre-commit.sh, test.sh and .woodpecker/test.yaml
- run uvx pre-commit run --all-files from .woodpecker/pre-commit.yaml and make pre-commit
- drop the Dockerfile test stage and the make test targets
2026-09-27 20:17:06 +10:00
unkin-agent f755ae30b9 Drop the syntax directive
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build Pipeline failed
It pulled a frontend image from Docker Hub for features this Dockerfile does
not use.
2026-09-27 18:37:23 +10:00
unkin-agent c90a0e1fe3 Take the estate repo name from distro.env
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/test Pipeline failed
Keeps the test assertions distro-agnostic so a non-el9 matrix entry needs no
script edit.
2026-09-27 18:07:07 +10:00
unkin-agent d2040789e5 Add matrixed gobuilder image build
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline failed
Replace the packer-images gobuilder with a Dockerfile matrix built on each
container-base distro image, on a single repo semver.

- install golang, gcc and nfpm
- bake the sha256-pinned go-cache-plugin v0.1.0 binary onto PATH
- run in-image assertions as a --target test build stage
- add pull_request build/test/pre-commit and tag-triggered docker workflows
2026-09-27 17:55:29 +10:00
gitadmin 321896e1f8 Initial commit 2026-09-27 17:29:59 +10:00