Skip to content

Commit 98843f2

Browse files
committed
Use annotation to add expiration for images in quay
Using a label only works for image manifests, while using an annotation works for both image manifests and image indexes. For multi-arch builds, we need to use an annotation to set an expiration date. Fixes #433
1 parent a537121 commit 98843f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/container_image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
# Ensure we source identical build arguments for both builds
3232
source hack/version.sh && version::get_git_vars && version::get_build_date && \
3333
make docker-buildx IMG=${{ env.image_tag_branch }} && \
34-
make docker-buildx IMG=${{ env.image_tag_commit }} DOCKER_BUILD_ARGS="--label quay.expires-after=4w"
34+
make docker-buildx IMG=${{ env.image_tag_commit }} DOCKER_BUILD_ARGS="--annotation quay.expires-after=4w"

0 commit comments

Comments
 (0)