# Contributing Thanks for taking a look. This is a personal instance, so keep changes small and explain the why. ## Adding or bumping a tool 1. Add a pinned `ARG` in `dockerfiles/ubuntu.dockerfile` with a Renovate annotation above it, for example: ```dockerfile # renovate: datasource=github-releases depName=jqlang/jq ARG JQ_VERSION=1.7.1 ``` 2. Install it in its own `RUN` layer, verify a checksum when the upstream publishes one, and finish the layer with the tool's `--version` so a broken download fails the build instead of the first workflow run. 3. Extend `tests/default.sh` so the smoke test fails when the tool disappears. 4. Open a pull request. `build.yaml` builds all three base tags and runs the smoke test; nothing is published from a pull request. ## Ground rules - **Pin everything.** No `latest` tags, no downloads without a checksum when one is available. Renovate keeps the pins fresh. - **One concern per layer.** It keeps the layer cache usable and makes failures obvious. - **Do not drop tools that workflows rely on** without changing the workflows in 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. ## Branch names We follow [Conventional Branch](https://conventionalbranch.org/): ``` feat/ new image tag, new tool baked in fix/ broken build, wrong version, checksum failure chore/ versions, workflows, docs docs/ 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: - **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. Every run on `main` cuts the next patch: `release.yaml` publishes `v-ubuntu-` next to the moving `ubuntu-` 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 docker build -f dockerfiles/ubuntu.dockerfile --build-arg BASE_IMAGE_TAG=26.10 -t runner-images:test . docker run --rm -i runner-images:test bash -s -- 26.10 < tests/default.sh ``` Replace `26.10` with `26.04` or `24.04` to check the other bases. ## Reporting problems Bugs and breakage: normal issue. Security problems: see [SECURITY.md](SECURITY.md).