Skip to content
Snippets Groups Projects
Commit 787d4c36 authored by Thomas George Hartland's avatar Thomas George Hartland
Browse files

Sync from gitlab to harbor, not from upstream

Should help with dockerhub rate limits
parent 3295d2c8
No related branches found
No related tags found
1 merge request!65Use skopeo list-tags in sync job
Pipeline #2512799 passed
......@@ -62,7 +62,7 @@ for tag in $(echo "${tags_to_sync[@]}" ); do
if [[ ! " ${harbor_repo_tags[@]} " =~ " ${tag} " ]]; then
# Update
echo ""
until skopeo copy --dest-creds "${HARBOR_ROBOT_NAME}:${HARBOR_ROBOT_TOKEN}" "docker://${repo}:${tag}" "docker://registry.cern.ch/magnum/${image_name}:${tag}"
until skopeo copy --dest-creds "${HARBOR_ROBOT_NAME}:${HARBOR_ROBOT_TOKEN}" "docker://${CI_REGISTRY_IMAGE}/${image_name}:${tag}" "docker://registry.cern.ch/magnum/${image_name}:${tag}"
do
((i++))
if [ $i -gt 5 ] ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment