From 787d4c36c52ee692b78f70a7978e7a4dac8c2d22 Mon Sep 17 00:00:00 2001 From: Thomas George Hartland <thomas.george.hartland@cern.ch> Date: Tue, 20 Apr 2021 10:08:34 +0200 Subject: [PATCH] Sync from gitlab to harbor, not from upstream Should help with dockerhub rate limits --- sync_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync_image.sh b/sync_image.sh index 92d2ea5..d9cfe07 100755 --- a/sync_image.sh +++ b/sync_image.sh @@ -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 -- GitLab