Skip to content

Commit 3d4b956

Browse files
committed
rd
1 parent e47c7ef commit 3d4b956

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

packages/build_package

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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.
1717
EOF
1818
}
@@ -23,7 +23,7 @@ BASE_IMAGE=''
2323
DOCKERFILE=''
2424
CACHE_FLAG='--no-cache'
2525
FORCE_REBUILD=false
26-
PUSH_TO_GCR=false
26+
PUSH_TO_GAR=false
2727
BUILD_ARGS=''
2828

2929
while :; 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
145145
else

push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ readonly LABEL
6464

6565
set -x
6666
docker tag "${SOURCE_IMAGE_TAG}" "${TARGET_IMAGE}:${LABEL}"
67-
gcloud docker -- push "${TARGET_IMAGE}:${LABEL}"
67+
docker push "${TARGET_IMAGE}:${LABEL}"

0 commit comments

Comments
 (0)