Skip to content

Commit

Permalink
Only copy the index
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
samdoran authored and chmeliik committed Sep 26, 2024
1 parent f18dcd2 commit 109199e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions task/apply-tags/0.1/apply-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 109199e

Please sign in to comment.