Repository navigation
Open
Labels
priority: mediumMedium prioritystatus: in progressCurrently being worked ontype: ci / cdRelated to continuous integration / deliveryworkload: daysLikely takes days to resolve
Description
Why
After the scan, every repo attests, signs and tags its release image with its own copy of the same steps (10 copies). They differ where it matters:
- "latest" is decided four ways: tags merged into
main(foca, tesk-api, tesk-core), published releases viascripts/release_version.py(cloud-registry, trs-filer, protes, Pubgrade), inline code (krini, cloud-registry-ui), whilepublish-releasedecides the GitHub release's latest flag from published releases. The image'slatestand the release's "Latest" can therefore disagree. - The check that
X.Y.Zdoesn't already point to another digest runs in tesk-api, tesk-core, krini, cloud-registry-ui and foca-plugins, but not in foca, cloud-registry, trs-filer, protes and Pubgrade. - The digest hand-over between jobs is a job output in single-image repos and an artifact in matrix repos (foca, tesk-core), each with its own validation.
Expected result
- A new composite action
actions/release-image(caller logs in to the registry and grantsid-token: writeandattestations: write) that, for an image and a digest:- checks the digest format
- fails if
X.Y.Zexists with another digest (passes on a re-run with the same digest) - attests build provenance (
actions/attest-build-provenance, pushed to the registry) - signs the digest with cosign (keyless)
- tags
X.Y.Z, andlatestonly for the highest stable version, decided by the same rule as publish-release (published releases plus this version), and checks that each tag points to the digest
- Inputs for a tag prefix and for "never latest", so that foca-plugins can use it
- The digest hand-over for matrix jobs documented in the README (artifact name per matrix entry), or a small companion step if the README shows it can't be done in a few lines
- Tests, a README, and an entry in the repository's README
- Adopted by a first repo in a separate PR after the next .github release (candidate: tesk-api after 2.0.0)
Part of #65 (fourth checkbox: "Sign and tag images").
Metadata
Metadata
Assignees
Labels
priority: mediumMedium prioritystatus: in progressCurrently being worked ontype: ci / cdRelated to continuous integration / deliveryworkload: daysLikely takes days to resolve
Activity
fix(release-image): address Sourcery's review
fix(release-image): only confirmed tags count missing