Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rd #1464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

rd #1464

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ pipeline {
sh '''#!/bin/bash
set -exo pipefail

gcloud container images add-tag gcr.io/kaggle-images/python:${PRETEST_TAG} gcr.io/kaggle-images/python:${STAGING_TAG}
gcloud container images add-tag gcr.io/kaggle-private-byod/python:${PRETEST_TAG} gcr.io/kaggle-private-byod/python:${STAGING_TAG}
gcloud artifacts docker tags add gcr.io/kaggle-images/python:${PRETEST_TAG} gcr.io/kaggle-images/python:${STAGING_TAG}
gcloud artifacts docker tags add gcr.io/kaggle-private-byod/python:${PRETEST_TAG} gcr.io/kaggle-private-byod/python:${STAGING_TAG}
# NOTE(b/336842777): TPUVM images are tested on an actual TPU VM outside this pipeline, so they are not auto-promoted to :staging tag.
'''
}
Expand Down
10 changes: 5 additions & 5 deletions packages/build_package
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Options:
-v, --version VERSION Package version to build.
-b, --base-image IMAGE Base image tag (e.g. m80).
-c, --use-cache Use layer cache when building a new image.
-f, --force-rebuild Rebuild the image regardless of whether it already exist on GCR.
-u, --push Push image to GCR.
-f, --force-rebuild Rebuild the image regardless of whether it already exist on GAR.
-u, --push Push image to GAR.
--build-arg ARG=VALUE Build arguments to pass to the docker build command.
EOF
}
Expand All @@ -23,7 +23,7 @@ BASE_IMAGE=''
DOCKERFILE=''
CACHE_FLAG='--no-cache'
FORCE_REBUILD=false
PUSH_TO_GCR=false
PUSH_TO_GAR=false
BUILD_ARGS=''

while :; do
Expand Down Expand Up @@ -138,8 +138,8 @@ if $SHOULD_BUILD; then
--build-arg PACKAGE_VERSION=$PACKAGE_VERSION \
$SRCDIR

if $PUSH_TO_GCR; then
echo "Pushing $TAG to GCR..."
if $PUSH_TO_GAR; then
echo "Pushing $TAG to GAR..."
docker push $TAG
fi
else
Expand Down
2 changes: 1 addition & 1 deletion push
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ readonly LABEL

set -x
docker tag "${SOURCE_IMAGE_TAG}" "${TARGET_IMAGE}:${LABEL}"
gcloud docker -- push "${TARGET_IMAGE}:${LABEL}"
docker push "${TARGET_IMAGE}:${LABEL}"
Loading