@@ -47,18 +47,6 @@ pipeline {
47
47
'''
48
48
}
49
49
}
50
-
51
- stage(' Push CPU Image' ) {
52
- steps {
53
- sh ''' #!/bin/bash
54
- set -exo pipefail
55
-
56
- date
57
- docker pull gcr.io/kaggle-images/python:${PRETEST_TAG}
58
- ./push --source-image gcr.io/kaggle-images/python:${PRETEST_TAG} ${STAGING_TAG}
59
- '''
60
- }
61
- }
62
50
63
51
stage(' Docker GPU Build' ) {
64
52
// A GPU is not required to build this image. However, in our current setup,
@@ -81,7 +69,7 @@ pipeline {
81
69
# will untag the previously built image which is safe to do. Builds for a single branch are performed
82
70
# serially.
83
71
docker image prune -f
84
- ./build --gpu --base-image-tag ${STAGING_TAG } | ts
72
+ ./build --gpu --base-image-tag ${PRETEST_TAG } | ts
85
73
./push --gpu ${PRETEST_TAG}
86
74
'''
87
75
}
@@ -102,28 +90,15 @@ pipeline {
102
90
}
103
91
}
104
92
105
- stage(' Push GPU Image' ) {
106
- agent { label ' ephemeral-linux-gpu' }
107
- steps {
108
- sh ''' #!/bin/bash
109
- set -exo pipefail
110
-
111
- date
112
- docker pull gcr.io/kaggle-private-byod/python:${PRETEST_TAG}
113
- ./push --source-image gcr.io/kaggle-private-byod/python:${PRETEST_TAG} --gpu ${STAGING_TAG}
114
- '''
115
- }
116
- }
117
-
118
93
stage(' Package Versions' ) {
119
94
parallel {
120
95
stage(' CPU Diff' ) {
121
96
steps {
122
97
sh ''' #!/bin/bash
123
98
set -exo pipefail
124
99
125
- docker pull gcr.io/kaggle-images/python:${STAGING_TAG }
126
- ./diff --target gcr.io/kaggle-images/python:${STAGING_TAG }
100
+ docker pull gcr.io/kaggle-images/python:${PRETEST_TAG }
101
+ ./diff --target gcr.io/kaggle-images/python:${PRETEST_TAG }
127
102
'''
128
103
}
129
104
}
@@ -133,13 +108,24 @@ pipeline {
133
108
sh ''' #!/bin/bash
134
109
set -exo pipefail
135
110
136
- docker pull gcr.io/kaggle-private-byod/python:${STAGING_TAG }
137
- ./diff --gpu --target gcr.io/kaggle-private-byod/python:${STAGING_TAG }
111
+ docker pull gcr.io/kaggle-private-byod/python:${PRETEST_TAG }
112
+ ./diff --gpu --target gcr.io/kaggle-private-byod/python:${PRETEST_TAG }
138
113
'''
139
114
}
140
115
}
141
116
}
142
117
}
118
+
119
+ stage(' Label CPU/GPU Staging Images' ) {
120
+ steps {
121
+ sh ''' #!/bin/bash
122
+ set -exo pipefail
123
+
124
+ gcloud container images add-tag gcr.io/kaggle-images/python:${PRETEST_TAG} gcr.io/kaggle-images/python:${STAGING_TAG}
125
+ gcloud container images add-tag gcr.io/kaggle-private-byod/python:${PRETEST_TAG} gcr.io/kaggle-private-byod/python:${STAGING_TAG}
126
+ '''
127
+ }
128
+ }
143
129
}
144
130
145
131
post {
0 commit comments