Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Beha committed Jun 19, 2024
1 parent 159d8b6 commit 6bec80a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file added task/skopeo-copy/0.4/.skopeo-copy.yaml.swp
Binary file not shown.
8 changes: 5 additions & 3 deletions task/skopeo-copy/0.4/skopeo-copy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,18 @@ spec:
echo "$cmd"
done < "$filename"
}
#
# If single image is to be copied then, it can be passed through
# params in the taskrun.
# Check that the multiArch parm is one of the supported methods
#
case "$(params.multiArch)" in all|system|index-only)
;;
*)
echo "Unrecognized multiArch choice: $(params.multiArch)"
exit 1;;
esac
#
# If single image is to be copied then, it can be passed through
# params in the taskrun.
#
if [ "$(params.srcImageURL)" != "" ] && [ "$(params.destImageURL)" != "" ] ; then
skopeo copy --multi-arch="$(params.multiArch)" "$(params.srcImageURL)" "$(params.destImageURL)" --src-tls-verify="$(params.srcTLSverify)" --dest-tls-verify="$(params.destTLSverify)"
else
Expand Down

0 comments on commit 6bec80a

Please sign in to comment.