You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- until docker info >/dev/null 2>&1; do sleep 1; done# docker is not always fully ready immediately, sleep until it's online
70
-
- export IMG_TAG=$(echo ${CI_COMMIT_TAG}|sed 's/operator\// /') # remove `operator/` from the tag
71
-
- |# fetch the platform-specific image
69
+
- until docker info >/dev/null 2>&1; do sleep 1; done
70
+
- export IMG_TAG="${CI_COMMIT_TAG#operator/}"
71
+
- |
72
72
export IMAGE_TARGETS=""
73
73
for ARCH in ${ARCH_LIST//,/ }; do
74
-
docker --config . pull ${GHCR_REGISTRY_IMAGE}:${IMG_TAG} --platform $ARCH # fetch the image from ghcr.io
75
-
docker --config . tag ${GHCR_REGISTRY_IMAGE}:${IMG_TAG} ${NVCR_REGISTRY_IMAGE}:${IMG_TAG}-$(echo $ARCH|sed 's;linux/;;') # retag the image using the arch
76
-
docker --config . push ${NVCR_REGISTRY_IMAGE}:${IMG_TAG}-$(echo ${ARCH}|sed 's;linux/;;') # push the new image up to nvcr.io
77
-
export IMAGE_TARGETS=$IMAGE_TARGETS"--amend ${NVCR_REGISTRY_IMAGE}:${IMG_TAG}-$(echo $ARCH|sed 's;linux/;;') " # add the image to the manifest's `--amend` list
- until docker info >/dev/null 2>&1; do sleep 1; done# docker is not always fully ready immediately, sleep until it's online
106
-
- export IMG_TAG=$(echo ${CI_COMMIT_TAG}|sed 's/agent\// /') # remove `agent/` from the tag
107
-
- |# fetch the platform-specific image
106
+
- until docker info >/dev/null 2>&1; do sleep 1; done
107
+
- export IMG_TAG="${CI_COMMIT_TAG#agent/}"
108
+
- |
108
109
export IMAGE_TARGETS=""
109
110
for ARCH in ${ARCH_LIST//,/ }; do
110
-
docker --config . pull ${GHCR_REGISTRY_IMAGE}:${IMG_TAG} --platform $ARCH # fetch the image from ghcr.io
111
-
docker --config . tag ${GHCR_REGISTRY_IMAGE}:${IMG_TAG} ${NVCR_REGISTRY_IMAGE}:${IMG_TAG}-$(echo $ARCH|sed 's;linux/;;') # retag the image using the arch
112
-
docker --config . push ${NVCR_REGISTRY_IMAGE}:${IMG_TAG}-$(echo ${ARCH}|sed 's;linux/;;') # push the new image up to nvcr.io
113
-
export IMAGE_TARGETS=$IMAGE_TARGETS"--amend ${NVCR_REGISTRY_IMAGE}:${IMG_TAG}-$(echo $ARCH|sed 's;linux/;;') " # add the image to the manifest's `--amend` list
0 commit comments