Consumers should pin image:X.Y.Z@sha256:<digest>: the tag says which release it is, the digest is what is enforced. Until now the images had only sha-<12> and latest (plus the Collection's v* tag on tag pushes).
Change (.gitea/workflows/image.yml only)
A version: per image in the matrix (both start at 0.1.0), validated as MAJOR.MINOR.PATCH[-prerelease] (no +: not a valid OCI tag character). Image versions are independent of the Collection's releases: the ci image changes far more often.
Every build from main pushes sha-<12> and latest; the version tag is pushed only if it is not in the registry yet. Gitea cannot make a tag immutable, so the prepare step looks it up (HEAD /v2/<image>/manifests/<version> with the credential it already selected): 200 means published, so the tag is not moved and the job warns that the version needs bumping; 404 means free; anything else fails rather than guessing.
The printed Pinned reference is image:<version>@sha256:… when this build created the tag, else image@sha256:….
Removed: the v* tag trigger and the tag-name image tag. Floating 0.1 / 0 tags are deliberately not published (mutable; pinning is by digest).
Releasing a new image version
Bump version: of that image in the same PR as the change; the first build from main publishes it. A rebuild without a bump (a pin file change, or a base-image digest bump) only refreshes sha-<12> and latest.
After merge
The first run publishes 0.1.0 for both images, with new digests (images get a fresh creation time on each build), so the Lint/Build switch PR will pin those.
## Why
Consumers should pin `image:X.Y.Z@sha256:<digest>`: the tag says which release it is, the digest is what is enforced. Until now the images had only `sha-<12>` and `latest` (plus the Collection's `v*` tag on tag pushes).
## Change (`.gitea/workflows/image.yml` only)
- A `version:` per image in the matrix (both start at `0.1.0`), validated as `MAJOR.MINOR.PATCH[-prerelease]` (no `+`: not a valid OCI tag character). Image versions are independent of the Collection's releases: the ci image changes far more often.
- Every build from `main` pushes `sha-<12>` and `latest`; the version tag is pushed only if it is not in the registry yet. Gitea cannot make a tag immutable, so the prepare step looks it up (`HEAD /v2/<image>/manifests/<version>` with the credential it already selected): 200 means published, so the tag is not moved and the job warns that the version needs bumping; 404 means free; anything else fails rather than guessing.
- The printed `Pinned reference` is `image:<version>@sha256:…` when this build created the tag, else `image@sha256:…`.
- Removed: the `v*` tag trigger and the tag-name image tag. Floating `0.1` / `0` tags are deliberately not published (mutable; pinning is by digest).
## Releasing a new image version
Bump `version:` of that image in the same PR as the change; the first build from `main` publishes it. A rebuild without a bump (a pin file change, or a base-image digest bump) only refreshes `sha-<12>` and `latest`.
## After merge
The first run publishes `0.1.0` for both images, with new digests (images get a fresh creation time on each build), so the Lint/Build switch PR will pin those.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Each image gets a version in the build matrix, pushed as a tag next to
sha-<12> and latest, so consumers can pin image:X.Y.Z@sha256:<digest>.
Gitea cannot make a tag immutable, so the prepare step asks the registry
first: when the version tag already exists it is left alone and the job warns
that the version needs bumping. Image versions are independent of the
Collection's release tags, so the v* tag trigger and tag handling go.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
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.
Why
Consumers should pin
image:X.Y.Z@sha256:<digest>: the tag says which release it is, the digest is what is enforced. Until now the images had onlysha-<12>andlatest(plus the Collection'sv*tag on tag pushes).Change (
.gitea/workflows/image.ymlonly)version:per image in the matrix (both start at0.1.0), validated asMAJOR.MINOR.PATCH[-prerelease](no+: not a valid OCI tag character). Image versions are independent of the Collection's releases: the ci image changes far more often.mainpushessha-<12>andlatest; the version tag is pushed only if it is not in the registry yet. Gitea cannot make a tag immutable, so the prepare step looks it up (HEAD /v2/<image>/manifests/<version>with the credential it already selected): 200 means published, so the tag is not moved and the job warns that the version needs bumping; 404 means free; anything else fails rather than guessing.Pinned referenceisimage:<version>@sha256:…when this build created the tag, elseimage@sha256:….v*tag trigger and the tag-name image tag. Floating0.1/0tags are deliberately not published (mutable; pinning is by digest).Releasing a new image version
Bump
version:of that image in the same PR as the change; the first build frommainpublishes it. A rebuild without a bump (a pin file change, or a base-image digest bump) only refreshessha-<12>andlatest.After merge
The first run publishes
0.1.0for both images, with new digests (images get a fresh creation time on each build), so the Lint/Build switch PR will pin those.🤖 Generated with Claude Code