Skip to content

ci: share the image release steps #84

Open

Description

@uniqueg

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 via scripts/release_version.py (cloud-registry, trs-filer, protes, Pubgrade), inline code (krini, cloud-registry-ui), while publish-release decides the GitHub release's latest flag from published releases. The image's latest and the release's "Latest" can therefore disagree.
  • The check that X.Y.Z doesn'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 grants id-token: write and attestations: write) that, for an image and a digest:
    • checks the digest format
    • fails if X.Y.Z exists 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, and latest only 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").

Activity

  1. self-assigned this
    on Nov 16, 2026
  2. added
    priority: medium
    status: in progress
    type: ci / cd
    workload: days
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: mediumstatus: in progresstype: ci / cdworkload: days

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions