File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,8 @@ pipeline {
200200 sh ''' #!/bin/bash
201201 set -exo pipefail
202202
203- gcloud container images add-tag gcr.io/kaggle-images/python:${PRETEST_TAG} gcr.io/kaggle-images/python:${STAGING_TAG}
204- gcloud container images add-tag gcr.io/kaggle-private-byod/python:${PRETEST_TAG} gcr.io/kaggle-private-byod/python:${STAGING_TAG}
203+ gcloud artifacts docker tags add gcr.io/kaggle-images/python:${PRETEST_TAG} gcr.io/kaggle-images/python:${STAGING_TAG}
204+ gcloud artifacts docker tags add gcr.io/kaggle-private-byod/python:${PRETEST_TAG} gcr.io/kaggle-private-byod/python:${STAGING_TAG}
205205 # NOTE(b/336842777): TPUVM images are tested on an actual TPU VM outside this pipeline, so they are not auto-promoted to :staging tag.
206206 '''
207207 }
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ Options:
1111 -v, --version VERSION Package version to build.
1212 -b, --base-image IMAGE Base image tag (e.g. m80).
1313 -c, --use-cache Use layer cache when building a new image.
14- -f, --force-rebuild Rebuild the image regardless of whether it already exist on GCR .
15- -u, --push Push image to GCR .
14+ -f, --force-rebuild Rebuild the image regardless of whether it already exist on GAR .
15+ -u, --push Push image to GAR .
1616 --build-arg ARG=VALUE Build arguments to pass to the docker build command.
1717EOF
1818}
@@ -23,7 +23,7 @@ BASE_IMAGE=''
2323DOCKERFILE=' '
2424CACHE_FLAG=' --no-cache'
2525FORCE_REBUILD=false
26- PUSH_TO_GCR =false
26+ PUSH_TO_GAR =false
2727BUILD_ARGS=' '
2828
2929while : ; do
@@ -138,8 +138,8 @@ if $SHOULD_BUILD; then
138138 --build-arg PACKAGE_VERSION=$PACKAGE_VERSION \
139139 $SRCDIR
140140
141- if $PUSH_TO_GCR ; then
142- echo " Pushing $TAG to GCR ..."
141+ if $PUSH_TO_GAR ; then
142+ echo " Pushing $TAG to GAR ..."
143143 docker push $TAG
144144 fi
145145else
Original file line number Diff line number Diff line change @@ -64,4 +64,4 @@ readonly LABEL
6464
6565set -x
6666docker tag " ${SOURCE_IMAGE_TAG} " " ${TARGET_IMAGE} :${LABEL} "
67- gcloud docker -- push " ${TARGET_IMAGE} :${LABEL} "
67+ docker push " ${TARGET_IMAGE} :${LABEL} "
You can’t perform that action at this time.
0 commit comments