Skip to content

Commit

Permalink
apply-tags: Tag multi-arch images as expected
Browse files Browse the repository at this point in the history
When copying an image manifest, skopeo by default only copies
the image matching the architecture of the system running skopeo. It
does not copy the image manifest as expected.

In my testing, adding the --multi-arch all flag on single architecture images
works without error.
  • Loading branch information
samdoran committed Sep 26, 2024
1 parent ca2eee0 commit 2adf007
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 docker://$IMAGE docker://$IMAGE_WITHOUT_TAG:$tag
skopeo copy --multi-arch all 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 docker://$IMAGE docker://$IMAGE_WITHOUT_TAG:$tag
skopeo copy --multi-arch all docker://"$IMAGE" docker://"$IMAGE_WITHOUT_TAG:$tag"
done
else
echo "No additional tags specified in the image labels"
Expand Down

0 comments on commit 2adf007

Please sign in to comment.