ci: switch Go steps to gobuilder, enable S3 build cache #8

Merged
benvin merged 1 commits from benvin/gocache into main 2026-10-02 23:49:35 +10:00
Member

Go CI ran vanilla golang:1.25 with no shared cache, paying full
module/build cost every run, and pre-commit/release still pinned the
stale almalinux9-gobuilder image.

  • switch pre-commit, test, and release test/build steps to
    gobuilder:0.1.2-alma9
  • wire GOCACHEPROG to go-cache-plugin against the shared S3 bucket,
    creds from org GOCACHE_AWS_* secrets, absolute /tmp/gocache cache-dir
  • leave the golangci-lint step and buildx image steps untouched
Go CI ran vanilla golang:1.25 with no shared cache, paying full module/build cost every run, and pre-commit/release still pinned the stale almalinux9-gobuilder image. - switch pre-commit, test, and release test/build steps to gobuilder:0.1.2-alma9 - wire GOCACHEPROG to go-cache-plugin against the shared S3 bucket, creds from org GOCACHE_AWS_* secrets, absolute /tmp/gocache cache-dir - leave the golangci-lint step and buildx image steps untouched
unkin-agent added 1 commit 2026-10-02 23:45:43 +10:00
ci: switch Go steps to gobuilder, enable S3 build cache
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
f7119e2361
golang:1.25 and the stale almalinux9-gobuilder pin are replaced by
gobuilder:0.1.2-alma9 on every step that invokes the Go toolchain, with
GOCACHEPROG wired to the baked-in go-cache-plugin against the shared
S3 cache bucket.

- pre-commit, test, release build/test: image -> gobuilder:0.1.2-alma9
- add GOCACHE_* env + AWS creds from org secrets, absolute cache-dir
- lint step (test.yaml), buildx steps, release upload step untouched
benvin merged commit 0f0fb7fa8e into main 2026-10-02 23:49:35 +10:00
benvin deleted branch benvin/gocache 2026-10-02 23:49:35 +10:00
Sign in to join this conversation.