Skip to content

Commit a3296aa

Browse files
author
Seb Boving
committed
Only push the tagged image to docker.io.
1 parent 141694b commit a3296aa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

push

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ label=${1:-testing}
77
docker tag kaggle/python-build:latest gcr.io/kaggle-images/python:${label}
88
gcloud docker -- push gcr.io/kaggle-images/python:${label}
99

10-
docker tag kaggle/python-build:latest kaggle/python:${label}
11-
docker push kaggle/python:${label}
10+
if [[ "$label" == "latest" ]]; then
11+
docker tag kaggle/python-build:latest kaggle/python:${label}
12+
docker push kaggle/python:${label}
13+
fi

0 commit comments

Comments
 (0)