fix: upgrade base packages and npm to clear the image scan
build / build (26.04) (pull_request) Successful in 3m34s
build / build (26.10) (pull_request) Successful in 3m35s
build / build (24.04) (pull_request) Successful in 3m38s

apt-get upgrade keeps buildpack-deps from freezing linux-libc-dev at the
version the base image shipped with; five CRITICAL kernel CVEs in that
package alone failed the 24.04 publish. npm 11.21.3 replaces the undici
6.28.0 and brace-expansion 5.0.9 bundled with node 26.13.1, 12 HIGH
findings. The npm tree is copied back into the tool cache because the
in-place upgrade breaks its hardlink.

Release pipeline: each main build now cuts the next patch from the newest
v* tag, publishes v<semver>-ubuntu-<base> next to the moving ubuntu-<base>
tags, and only tags the commit after every base has published, so a failed
scan can no longer leave a half published version. The v0.0.0-dev.<sha>
fallback is gone.

Docs: README no longer pins tool versions that Renovate already tracks, and
the image tags, versioning and commit conventions are written down.
This commit is contained in:
fristy committed 2026-11-20 14:35:30 +03:00
1 parent 24f61b6217
commit a7f9769a82
6 files changed
+131 -51

No files matched your search

+20 -8
View File
@@ -30,8 +30,6 @@ explain the why.
the same pull request.
- **Architecture:** the build matrix is `linux/amd64`. The Dockerfile maps
`TARGETARCH` for `arm64` as well, so keep it working when you add downloads.
- **Commits:** short imperative subject, body explains the reason. Add
`Signed-off-by:` if you can (DCO-style, no CLA).
## Branch names
@@ -46,24 +44,38 @@ docs/<slug> README, CONTRIBUTING, SECURITY
No long-lived branches besides `main`; delete the branch after the merge.
## Commits
We follow [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/):
`type(optional scope): summary` in the imperative, the reason in the body.
```
feat: bake gh into the image
fix(dockerfile): keep the Go checksum lookup working
chore(deps): update runner tool versions
docs: explain the image tags
```
Add `Signed-off-by:` if you can (DCO-style, no CLA). A breaking change takes a
`!` after the type or a `BREAKING CHANGE:` footer, and that is a major release.
## Versioning
The repository follows [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html)
for its own releases (`vMAJOR.MINOR.PATCH` git tags, published from `release.yaml`):
for its own releases:
- **MAJOR** — a tag disappears, an image stops shipping a tool workflows depend on.
- **MINOR** — a new base tag, a new tool or a new cache layout.
- **PATCH** — version bumps of the tools already inside, rebuilds for base updates.
The image tags themselves (`ubuntu-24.04`, `ubuntu-latest`, …) follow the Ubuntu
release they are built on and are not versioned. `IMAGE_VERSION` records the
SemVer tag when the build comes from a `v*` tag, otherwise
`v0.0.0-dev.<sha>`.
Every run on `main` cuts the next patch: `release.yaml` publishes
`v<semver>-ubuntu-<base>` next to the moving `ubuntu-<base>` tags, then tags the
commit. Minor and major releases start that workflow by hand with `version` set.
`IMAGE_VERSION` records the version the image was built as.
Changes are recorded in [CHANGELOG.md](CHANGELOG.md), which follows
[Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/).
## Testing locally
```bash