4
4
5
5
# Environment variable for configuring
6
6
# the ":$tag" for build Docker images
7
+ variable "HANDLE" {
8
+ default = " "
9
+ }
10
+
7
11
variable "TAG" {
8
- default = " latest "
12
+ default = " "
9
13
}
10
14
11
15
# Github SHA, which is used for the revision label
@@ -143,7 +147,8 @@ target "python_base_3_9" {
143
147
inherits = [" base" ]
144
148
context = " python/base/3.9"
145
149
tags = [
146
- " ghcr.io/noteable-io/kernel-python-3.9-base:${ TAG } "
150
+ " ghcr.io/noteable-io/kernel-python-3.9-base:${ TAG } " ,
151
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-python-3.9-base:${ HANDLE } " : " "
147
152
]
148
153
}
149
154
@@ -152,7 +157,8 @@ target "python_base_3_10" {
152
157
inherits = [" base" ]
153
158
context = " python/base/3.10"
154
159
tags = [
155
- " ghcr.io/noteable-io/kernel-python-3.10-base:${ TAG } "
160
+ " ghcr.io/noteable-io/kernel-python-3.10-base:${ TAG } " ,
161
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-python-3.10-base:${ HANDLE } " : " "
156
162
]
157
163
}
158
164
@@ -161,7 +167,8 @@ target "python_base_3_11" {
161
167
inherits = [" base" ]
162
168
context = " python/base/3.11"
163
169
tags = [
164
- " ghcr.io/noteable-io/kernel-python-3.11-base:${ TAG } "
170
+ " ghcr.io/noteable-io/kernel-python-3.11-base:${ TAG } " ,
171
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-python-3.11-base:${ HANDLE } " : " "
165
172
]
166
173
}
167
174
@@ -172,7 +179,8 @@ target "python_base_3_9_gpu" {
172
179
base = " target:python_base_3_9"
173
180
}
174
181
tags = [
175
- " ghcr.io/noteable-io/kernel-gpu-python-3.9-base:${ TAG } "
182
+ " ghcr.io/noteable-io/kernel-gpu-python-3.9-base:${ TAG } " ,
183
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-gpu-python-3.9-base:${ HANDLE } " : " "
176
184
]
177
185
}
178
186
@@ -183,7 +191,8 @@ target "python_base_3_10_gpu" {
183
191
base = " target:python_base_3_10"
184
192
}
185
193
tags = [
186
- " ghcr.io/noteable-io/kernel-gpu-python-3.10-base:${ TAG } "
194
+ " ghcr.io/noteable-io/kernel-gpu-python-3.10-base:${ TAG } " ,
195
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-gpu-python-3.10-base:${ HANDLE } " : " "
187
196
]
188
197
}
189
198
@@ -194,7 +203,8 @@ target "python_base_3_11_gpu" {
194
203
base = " target:python_base_3_11"
195
204
}
196
205
tags = [
197
- " ghcr.io/noteable-io/kernel-gpu-python-3.11-base:${ TAG } "
206
+ " ghcr.io/noteable-io/kernel-gpu-python-3.11-base:${ TAG } " ,
207
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-gpu-python-3.11-base:${ HANDLE } " : " "
198
208
]
199
209
}
200
210
@@ -206,7 +216,8 @@ target "python_noteable_3_9" {
206
216
}
207
217
target = " main"
208
218
tags = [
209
- " ghcr.io/noteable-io/kernel-python-3.9-noteable:${ TAG } "
219
+ " ghcr.io/noteable-io/kernel-python-3.9-noteable:${ TAG } " ,
220
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-python-3.9-noteable:${ HANDLE } " : " "
210
221
]
211
222
}
212
223
@@ -218,7 +229,8 @@ target "python_noteable_3_10" {
218
229
}
219
230
target = " main"
220
231
tags = [
221
- " ghcr.io/noteable-io/kernel-python-3.10-noteable:${ TAG } "
232
+ " ghcr.io/noteable-io/kernel-python-3.10-noteable:${ TAG } " ,
233
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-python-3.10-noteable:${ HANDLE } " : " "
222
234
]
223
235
}
224
236
@@ -230,7 +242,8 @@ target "python_noteable_3_9_gpu" {
230
242
}
231
243
target = " gpu"
232
244
tags = [
233
- " ghcr.io/noteable-io/kernel-gpu-python-3.9-noteable:${ TAG } "
245
+ " ghcr.io/noteable-io/kernel-gpu-python-3.9-noteable:${ TAG } " ,
246
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-gpu-python-3.9-noteable:${ HANDLE } " : " "
234
247
]
235
248
}
236
249
@@ -242,7 +255,8 @@ target "python_noteable_3_10_gpu" {
242
255
}
243
256
target = " gpu"
244
257
tags = [
245
- " ghcr.io/noteable-io/kernel-gpu-python-3.10-noteable:${ TAG } "
258
+ " ghcr.io/noteable-io/kernel-gpu-python-3.10-noteable:${ TAG } " ,
259
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-gpu-python-3.10-noteable:${ HANDLE } " : " "
246
260
]
247
261
}
248
262
@@ -254,7 +268,8 @@ target "python_datascience_3_9" {
254
268
}
255
269
target = " main"
256
270
tags = [
257
- " ghcr.io/noteable-io/kernel-python-3.9-datascience:${ TAG } "
271
+ " ghcr.io/noteable-io/kernel-python-3.9-datascience:${ TAG } " ,
272
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-python-3.9-datascience:${ HANDLE } " : " "
258
273
]
259
274
}
260
275
@@ -266,7 +281,8 @@ target "python_datascience_3_10" {
266
281
}
267
282
target = " main"
268
283
tags = [
269
- " ghcr.io/noteable-io/kernel-python-3.10-datascience:${ TAG } "
284
+ " ghcr.io/noteable-io/kernel-python-3.10-datascience:${ TAG } " ,
285
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-python-3.10-datascience:${ HANDLE } " : " "
270
286
]
271
287
}
272
288
@@ -278,7 +294,8 @@ target "python_datascience_3_11" {
278
294
}
279
295
target = " main"
280
296
tags = [
281
- " ghcr.io/noteable-io/kernel-python-3.11-datascience:${ TAG } "
297
+ " ghcr.io/noteable-io/kernel-python-3.11-datascience:${ TAG } " ,
298
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-python-3.11-datascience:${ HANDLE } " : " "
282
299
]
283
300
}
284
301
@@ -290,7 +307,8 @@ target "python_datascience_3_9_gpu" {
290
307
}
291
308
target = " gpu"
292
309
tags = [
293
- " ghcr.io/noteable-io/kernel-gpu-python-3.9-datascience:${ TAG } "
310
+ " ghcr.io/noteable-io/kernel-gpu-python-3.9-datascience:${ TAG } " ,
311
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-gpu-python-3.9-datascience:${ HANDLE } " : " "
294
312
]
295
313
}
296
314
@@ -302,7 +320,8 @@ target "python_datascience_3_10_gpu" {
302
320
}
303
321
target = " gpu"
304
322
tags = [
305
- " ghcr.io/noteable-io/kernel-gpu-python-3.10-datascience:${ TAG } "
323
+ " ghcr.io/noteable-io/kernel-gpu-python-3.10-datascience:${ TAG } " ,
324
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-gpu-python-3.10-datascience:${ HANDLE } " : " "
306
325
]
307
326
}
308
327
@@ -314,7 +333,8 @@ target "python_datascience_3_11_gpu" {
314
333
}
315
334
target = " gpu"
316
335
tags = [
317
- " ghcr.io/noteable-io/kernel-gpu-python-3.11-datascience:${ TAG } "
336
+ " ghcr.io/noteable-io/kernel-gpu-python-3.11-datascience:${ TAG } " ,
337
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-gpu-python-3.11-datascience:${ HANDLE } " : " "
318
338
]
319
339
}
320
340
@@ -323,7 +343,8 @@ target "rlang_base_4_3_0" {
323
343
inherits = [" base" ]
324
344
context = " r/base/4.3.0"
325
345
tags = [
326
- " ghcr.io/noteable-io/kernel-r-4.3.0-base:${ TAG } "
346
+ " ghcr.io/noteable-io/kernel-r-4.3.0-base:${ TAG } " ,
347
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-r-4.3.0-base:${ HANDLE } " : " "
327
348
]
328
349
}
329
350
@@ -335,7 +356,8 @@ target "rlang_datascience_4_3_0" {
335
356
}
336
357
target = " main"
337
358
tags = [
338
- " ghcr.io/noteable-io/kernel-r-4.3.0-datascience:${ TAG } "
359
+ " ghcr.io/noteable-io/kernel-r-4.3.0-datascience:${ TAG } " ,
360
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-r-4.3.0-datascience:${ HANDLE } " : " "
339
361
]
340
362
}
341
363
@@ -347,7 +369,8 @@ target "rlang_noteable_4_3_0" {
347
369
}
348
370
target = " main"
349
371
tags = [
350
- " ghcr.io/noteable-io/kernel-r-4.3.0-noteable:${ TAG } "
372
+ " ghcr.io/noteable-io/kernel-r-4.3.0-noteable:${ TAG } " ,
373
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-r-4.3.0-noteable:${ HANDLE } " : " "
351
374
]
352
375
}
353
376
@@ -356,6 +379,7 @@ target "rust_base_1_70_0" {
356
379
inherits = [" base" ]
357
380
context = " rust/base/1.70"
358
381
tags = [
359
- " ghcr.io/noteable-io/kernel-rust-1.70-base:${ TAG } "
382
+ " ghcr.io/noteable-io/kernel-rust-1.70-base:${ TAG } " ,
383
+ notequal (" " , HANDLE) ? " ghcr.io/noteable-io/kernel-rust-1.70-base:${ HANDLE } " : " "
360
384
]
361
385
}
0 commit comments