Caches in the runners' S3 cache (actions/cache restore/save) for lint, test and build: Go modules, Go build cache, golangci-lint cache (lint), npm cache. Only main saves (one entry per commit, the bucket expires them after 7 days); PRs and tags restore the newest entry from main. release.yaml restores the build cache read-only.
golangci-lint from the release tarball (sha256-checked) instead of go install, which compiled the linter from source on every run.
shellcheck v0.12.0 from the static release binary instead of apt-get update && apt-get install on every run.
Image without a second build: the build job uploads its dist/linux_amd64 binaries as an artifact; the image job packs them with Dockerfile.ci (same distroless base, nonroot, entrypoint api) using the runner's Docker daemon. Previously Kaniko cloned the repo and built frontend and Go a second time, without cache. The binaries carry the same Version/Commit ldflags as the old image build ($VERSION from the build job, short SHA). Dockerfile stays for make image and local builds.
Tags and channels (<version>, edge, beta, latest/stable/X.Y), the push rules (only main and tags, only with PACKAGE_TOKEN) and the agent images are unchanged.
Not changed
The test job's six service images (timescaledb, mongo, mariadb, kafka, rabbitmq, redis) are still pulled cold on ephemeral runners; that needs a registry pull-through mirror in the cluster, not a workflow change.
Tested locally
Dockerfile.ci built from a context like the workflow's: api, checker, launcher, statuspage start in the image.
## What
- **Caches in the runners' S3 cache** (`actions/cache` restore/save) for `lint`, `test` and `build`: Go modules, Go build cache, golangci-lint cache (lint), npm cache. Only `main` saves (one entry per commit, the bucket expires them after 7 days); PRs and tags restore the newest entry from `main`. `release.yaml` restores the build cache read-only.
- **golangci-lint from the release tarball** (sha256-checked) instead of `go install`, which compiled the linter from source on every run.
- **shellcheck v0.12.0 from the static release binary** instead of `apt-get update && apt-get install` on every run.
- **Image without a second build**: the build job uploads its `dist/linux_amd64` binaries as an artifact; the image job packs them with `Dockerfile.ci` (same distroless base, `nonroot`, entrypoint `api`) using the runner's Docker daemon. Previously Kaniko cloned the repo and built frontend and Go a second time, without cache. The binaries carry the same `Version`/`Commit` ldflags as the old image build (`$VERSION` from the build job, short SHA). `Dockerfile` stays for `make image` and local builds.
Tags and channels (`<version>`, `edge`, `beta`, `latest`/`stable`/`X.Y`), the push rules (only main and tags, only with `PACKAGE_TOKEN`) and the agent images are unchanged.
## Not changed
The test job's six service images (timescaledb, mongo, mariadb, kafka, rabbitmq, redis) are still pulled cold on ephemeral runners; that needs a registry pull-through mirror in the cluster, not a workflow change.
## Tested locally
- `Dockerfile.ci` built from a context like the workflow's: `api`, `checker`, `launcher`, `statuspage` start in the image.
- golangci-lint tarball checksum and archive layout verified; shellcheck archive layout verified.
- Workflows parse as YAML.
The first run on this PR restores no cache yet (none saved from main); the effect shows after the first main run.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Go module/build cache, golangci-lint cache and npm cache in the runners'
S3 cache for lint, test and build; only main saves (one entry per
commit), PRs and tags restore; release restores the build cache
- golangci-lint from the release tarball (sha256-checked) instead of
compiling it with go install on every run
- shellcheck from its static release binary instead of apt-get on every run
- the image job packs the build job's amd64 binaries (Dockerfile.ci,
distroless, same entrypoint) with the runner's Docker daemon instead of
Kaniko rebuilding frontend and Go from the git context; Dockerfile stays
for local/make builds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
actions/cacherestore/save) forlint,testandbuild: Go modules, Go build cache, golangci-lint cache (lint), npm cache. Onlymainsaves (one entry per commit, the bucket expires them after 7 days); PRs and tags restore the newest entry frommain.release.yamlrestores the build cache read-only.go install, which compiled the linter from source on every run.apt-get update && apt-get installon every run.dist/linux_amd64binaries as an artifact; the image job packs them withDockerfile.ci(same distroless base,nonroot, entrypointapi) using the runner's Docker daemon. Previously Kaniko cloned the repo and built frontend and Go a second time, without cache. The binaries carry the sameVersion/Commitldflags as the old image build ($VERSIONfrom the build job, short SHA).Dockerfilestays formake imageand local builds.Tags and channels (
<version>,edge,beta,latest/stable/X.Y), the push rules (only main and tags, only withPACKAGE_TOKEN) and the agent images are unchanged.Not changed
The test job's six service images (timescaledb, mongo, mariadb, kafka, rabbitmq, redis) are still pulled cold on ephemeral runners; that needs a registry pull-through mirror in the cluster, not a workflow change.
Tested locally
Dockerfile.cibuilt from a context like the workflow's:api,checker,launcher,statuspagestart in the image.The first run on this PR restores no cache yet (none saved from main); the effect shows after the first main run.
🤖 Generated with Claude Code