Skip to content

Instantly share code, notes, and snippets.

@micaelis72
Created November 8, 2018 18:08
Show Gist options
  • Save micaelis72/79f6ea596b5df85f6505344b474d5c4a to your computer and use it in GitHub Desktop.
Save micaelis72/79f6ea596b5df85f6505344b474d5c4a to your computer and use it in GitHub Desktop.
#!/bin/bash
REGISTRY=${1}
ORIGIN=${2}
INVENTORY=${3}
for images in $(cat ${INVENTORY}) ; do
echo "Inserting image ${images}"
skopeo copy dir:${ORIGIN}/${images} docker://${REGISTRY}/${images}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment