From 109199efc4d9823d875a376df06929dd50fdee38 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Thu, 26 Sep 2024 10:56:47 -0400 Subject: [PATCH] Only copy the index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will fail if any image referenced in the index doesn’t exist. That should be fine in this scenario since it is only expected to run this task on images that already exist. --- task/apply-tags/0.1/apply-tags.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/task/apply-tags/0.1/apply-tags.yaml b/task/apply-tags/0.1/apply-tags.yaml index d83ce325e..8a3c2da28 100644 --- a/task/apply-tags/0.1/apply-tags.yaml +++ b/task/apply-tags/0.1/apply-tags.yaml @@ -47,7 +47,7 @@ spec: IMAGE_WITHOUT_TAG=$(echo "$IMAGE" | sed 's/:[^:]*$//') for tag in "$@"; do echo "Applying tag $tag" - skopeo copy --multi-arch all docker://"$IMAGE" docker://"$IMAGE_WITHOUT_TAG:$tag" + skopeo copy --multi-arch index-only docker://"$IMAGE" docker://"$IMAGE_WITHOUT_TAG:$tag" done else echo "No additional tags parameter specified" @@ -70,7 +70,7 @@ spec: for tag in "${tags_array[@]}" do echo "Applying tag $tag" - skopeo copy --multi-arch all docker://"$IMAGE" docker://"$IMAGE_WITHOUT_TAG:$tag" + skopeo copy --multi-arch index-only docker://"$IMAGE" docker://"$IMAGE_WITHOUT_TAG:$tag" done else echo "No additional tags specified in the image labels"