Skip to content

Set commit image expiration via Quay API#734

Merged
mandre merged 1 commit intok-orc:mainfrom
shiftstack:quay-image-expiration
Apr 2, 2026
Merged

Set commit image expiration via Quay API#734
mandre merged 1 commit intok-orc:mainfrom
shiftstack:quay-image-expiration

Conversation

@mandre
Copy link
Copy Markdown
Collaborator

@mandre mandre commented Apr 2, 2026

The --annotation quay.expires-after=4w flag does not work for multi-arch images because Quay only reads Docker image config labels, not OCI manifest annotations. Since multi-arch image indexes have no config, neither labels nor annotations reach Quay's expiration logic.

Replace it with a Quay REST API call to set a 4-week expiration on the commit tag after pushing.

Hopefully fixes #433.

The `--annotation quay.expires-after=4w` flag does not work for
multi-arch images because Quay only reads Docker image config labels,
not OCI manifest annotations. Since multi-arch image indexes have no
config, neither labels nor annotations reach Quay's expiration logic.

Replace it with a Quay REST API call to set a 4-week expiration on
the commit tag after pushing.
@github-actions github-actions bot added the semver:patch No API change label Apr 2, 2026
@mandre mandre enabled auto-merge April 2, 2026 12:56
@mandre mandre added this pull request to the merge queue Apr 2, 2026
Merged via the queue into k-orc:main with commit ffefe38 Apr 2, 2026
12 checks passed
@mandre mandre deleted the quay-image-expiration branch April 2, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch No API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Many commit images on Quay lack an expiration date

1 participant