-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
12451 lines (11289 loc) · 312 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# - DO NOT EDIT - FILE IS AUTOGENERATED
# NOTE: The docker:stable-dind service is not used here because --add-runtime=nvidia does not work from DIND and we need the
# runtime to perform tests
# Important gitlab-runner considerations
#
# Docker buildx is used for multi-arch images builds. This feature is currently experimental and
# must be explicitly enabled on the docker daemon performing the image builds.
#
# To run multi-arch images on x86_64, qemu-user-static and systemd are required with the following configuration:
#
# $ cat /etc/binfmt.d/qemu-static.conf
# :qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-static:CF
# :qemu-ppc64le:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\x00:/usr/bin/qemu-ppc64le-static:CF
#
# < reboot or start systemd-binfmt.service >
#
# Check with:
#
# $ systemctl status systemd-binfmt.service
# < service should be started >
#
# $ docker run -it nvidia/cuda-ppc64le:11.0-base-ubuntu18.04-rc
# < container should run>
variables:
# Need a value of two here for checking the manifest in the last commit
GIT_DEPTH: "2"
# If set to "true" this will force the prepare stage to run to build the builder images that contains docker buildx and python dependencies
REBUILD_BUILDER: "false"
before_script:
- source util.sh
- if [[ ! -z ${RELEASE_LABEL} ]]; then
export CUDA_VERSION=${RELEASE_LABEL};
fi
- 'echo "TRIGGER: ${KITMAKER}"'
- 'echo "KITMAKER: ${KITMAKER}"'
- 'echo "IMAGE_NAME: $IMAGE_NAME"'
- 'echo "OS: $OS"'
- 'echo "OS_VERSION: $OS_VERSION"'
- 'echo "OS_NAME: $OS_NAME"'
- 'echo "ARCH: $ARCH"'
- 'echo "CUDA_VERSION: $CUDA_VERSION"'
- 'echo "RELEASE_LABEL: $RELEASE_LABEL"' # used by kitmaker and cuda versions >= 11.2
- 'echo "CUDNN_VERSION: $CUDNN_VERSION"'
- 'echo "IMAGE_TAG_SUFFIX: $IMAGE_TAG_SUFFIX"'
- 'echo "NO_OS_SUFFIX: $NO_OS_SUFFIX"'
# Gitlab is used to stage images
- retry 5 20 docker login -u "gitlab-ci-token" -p $CI_JOB_TOKEN gitlab-master.nvidia.com:5005
# Login to NGC to pull images
- retry 5 20 docker login -u '$oauthtoken' -p $NVCR_TOKEN nvcr.io;
stages:
- prepare
- trigger
- cuda
- cudnn
- test
- scan
- deploy
- cleanup_success
- cleanup_failure
# builds the gitlab-cuda-builder image
prepare:
image: docker:stable
stage: prepare
variables:
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder"
script:
- echo ">>>> PYPROJECT.TOML >>>>"
- cat pyproject.toml
- docker build -t gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder --cache-from gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder .
- docker push gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
tags:
- docker
rules:
- if: '$REBUILD_BUILDER == "true"'
.tags_template: &tags_definition
tags:
- docker
.tags_template_multiarch: &tags_definition_multiarch
tags:
- docker-multi-arch
# Only used for CUDA 8.0, will be removed once CUDA 8 support is dropped
.cuda_template_depricated: &cuda_definition_deprecated
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
stage: cuda
script:
- if [[ "${NO_OS_SUFFIX}" == "true" ]]; then
export TAG_RUNTIME=" -t ${IMAGE_NAME}:${CUDA_VERSION}-runtime ";
export TAG_DEVEL=" -t ${IMAGE_NAME}:${CUDA_VERSION}-devel ";
export CUDA_TAGS="${CUDA_VERSION}-runtime ${CUDA_VERSION}-devel ";
fi
- export DIST_BASE_PATH="${DIST_BASE_PATH}/${OS//.}";
- export PLATFORM_ARG=`printf '%s ' '--platform'; for var in $(echo $ARCHES | sed "s/,/ /g"); do printf 'linux/%s,' "$var"; done | sed 's/,*$//g'`
- 'echo "PLATFORM_ARG: ${PLATFORM_ARG}"'
# COPY the NGC DEEP LEARNING CONTAINER LICENSE
- run_cmd cp -v ./NGC-DL-CONTAINER-LICENSE "${DIST_BASE_PATH}/runtime"
- run_cmd retry 3 10 docker buildx create --use ${PLATFORM_ARG} --driver-opt image=moby/buildkit:v0.8.1 --name cuda
- run_cmd retry 3 10 docker buildx build --pull --push ${PLATFORM_ARG} -t "${IMAGE_NAME}:${CUDA_VERSION}-runtime-${OS}" ${TAG_RUNTIME} "${DIST_BASE_PATH}/runtime"
--build-arg BUILDKIT_INLINE_CACHE=1 --progress plain
--cache-from=type=registry,ref=${IMAGE_NAME}:${CUDA_VERSION}-runtime-${OS}
- run_cmd retry 3 10 docker buildx build --pull --push ${PLATFORM_ARG} -t "${IMAGE_NAME}:${CUDA_VERSION}-devel-${OS}" ${TAG_DEVEL} "${DIST_BASE_PATH}/devel"
--build-arg "IMAGE_NAME=${IMAGE_NAME}"
--build-arg BUILDKIT_INLINE_CACHE=1 --progress plain
--cache-from=type=registry,ref=${IMAGE_NAME}:${CUDA_VERSION}-devel-${OS}
- 'echo "CUDA_TAGS=\"${CUDA_TAGS} ${CUDA_VERSION}-runtime-${OS} ${CUDA_VERSION}-devel-${OS}\"" >> tags.env'
- cat tags.env
artifacts:
reports:
dotenv: tags.env
.cuda_base_template: &cuda_base_definition
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
stage: cuda
script:
- |
# How gitlab handles errors: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/25394
# prevent exit codes from killing the pipeline completely, errors must now be handled manually
set +e
if [[ "${NO_OS_SUFFIX}" == "true" ]]; then
export TAG_BASE=" -t ${IMAGE_NAME}:${CUDA_VERSION}-base${IMAGE_TAG_SUFFIX} "
export TAG_RUNTIME=" -t ${IMAGE_NAME}:${CUDA_VERSION}-runtime${IMAGE_TAG_SUFFIX} "
export TAG_DEVEL=" -t ${IMAGE_NAME}:${CUDA_VERSION}-devel${IMAGE_TAG_SUFFIX} "
export CUDA_TAGS="${CUDA_VERSION}-base${IMAGE_TAG_SUFFIX} ${CUDA_VERSION}-runtime${IMAGE_TAG_SUFFIX} ${CUDA_VERSION}-devel${IMAGE_TAG_SUFFIX} "
fi
export DIST_BASE_PATH="${DIST_BASE_PATH}/${OS//.}"
if [ ! -z $KITMAKER ] && [ ! -z $TRIGGER ]; then
export DIST_BASE_PATH="kitpick/${OS//.}"
rm -rf kitpick || true
run_cmd mkdir -p kitpick/${OS//.}/{devel,runtime,base}
NEW_CANDIDATE_URL="${CANDIDATE_URL}/${OS/./}"
# Ensure the url ends with a slash! This prevents wget from getting everything (and bringing apache to its knees)
[[ "${NEW_CANDIDATE_URL}" != */ ]] && NEW_CANDIDATE_URL="${NEW_CANDIDATE_URL}/"
echo "NEW_CANDIDATE_URL: ${NEW_CANDIDATE_URL}"
if ! retry 3 10 run_cmd wget --no-verbose --recursive --directory-prefix="kitpick_dl" --reject="index.html*" --no-parent ${NEW_CANDIDATE_URL}; then
echo "Could not download files from '${CANDIDATE_URL}'!!"
# kitmaker_webhook_failed
exit 1
fi
run_cmd cp -R kitpick_dl/${NEW_CANDIDATE_URL#"http://"}/{base,devel,runtime} ${DIST_BASE_PATH}/
echo "Contents of ${DIST_BASE_PATH}/"
find ${DIST_BASE_PATH}/
fi
export PLATFORM_ARG=`printf '%s ' '--platform'; for var in $(echo $ARCHES | sed "s/,/ /g"); do printf 'linux/%s,' "$var"; done | sed 's/,*$//g'`
echo "PLATFORM_ARG: ${PLATFORM_ARG}"
echo "DIST_BASE_PATH: ${DIST_BASE_PATH}"
echo "TAG_BASE: ${TAG_BASE}"
echo "TAG_RUNTIME: ${TAG_RUNTIME}"
echo "TAG_DEVEL: ${TAG_DEVEL}"
# COPY the NGC DEEP LEARNING CONTAINER LICENSE
run_cmd cp -v ./NGC-DL-CONTAINER-LICENSE "${DIST_BASE_PATH}/base"
# --driver-opt flag is needed to workaround https://github.com/docker/buildx/issues/386
if ! run_cmd retry 3 10 docker buildx create --use ${PLATFORM_ARG} --driver-opt image=moby/buildkit:v0.8.1 --name cuda; then
echo "Failed creating buildx instance!"
# kitmaker_webhook_failed
exit 1
fi
echo "####################################################################"
echo "BASE"
echo "####################################################################"
if ! run_cmd retry 3 10 docker buildx build --pull --push ${PLATFORM_ARG} -t "${IMAGE_NAME}:${CUDA_VERSION}-base-${OS}${IMAGE_TAG_SUFFIX}" ${TAG_BASE} "${DIST_BASE_PATH}/base" \
--build-arg BUILDKIT_INLINE_CACHE=1 --progress plain \
--cache-from=type=registry,ref=${IMAGE_NAME}:${CUDA_VERSION}-base-${OS}${IMAGE_TAG_SUFFIX}; then
echo "Failed building the base image!"
# kitmaker_webhook_failed
exit 1
fi
echo "####################################################################"
echo "RUNTIME"
echo "####################################################################"
if ! run_cmd retry 3 10 docker buildx build --pull --push ${PLATFORM_ARG} -t "${IMAGE_NAME}:${CUDA_VERSION}-runtime-${OS}${IMAGE_TAG_SUFFIX}" ${TAG_RUNTIME} \
--build-arg "IMAGE_NAME=${IMAGE_NAME}" "${DIST_BASE_PATH}/runtime" \
--build-arg BUILDKIT_INLINE_CACHE=1 --progress plain \
--cache-from=type=registry,ref=${IMAGE_NAME}:${CUDA_VERSION}-runtime-${OS}${IMAGE_TAG_SUFFIX}; then
echo "Failed building the runtime image!"
# kitmaker_webhook_failed
exit 1
fi
echo "####################################################################"
echo "DEVEL"
echo "####################################################################"
if ! run_cmd retry 3 10 docker buildx build --pull --push ${PLATFORM_ARG} -t "${IMAGE_NAME}:${CUDA_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX}" ${TAG_DEVEL} \
--build-arg "IMAGE_NAME=${IMAGE_NAME}" "${DIST_BASE_PATH}/devel" \
--build-arg BUILDKIT_INLINE_CACHE=1 --progress plain \
--cache-from=type=registry,ref=${IMAGE_NAME}:${CUDA_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX}; then
echo "Failed building the devel image!"
# kitmaker_webhook_failed
exit 1
fi
echo "CUDA_TAGS=\"${CUDA_TAGS} ${CUDA_VERSION}-base-${OS}${IMAGE_TAG_SUFFIX} ${CUDA_VERSION}-runtime-${OS}${IMAGE_TAG_SUFFIX} ${CUDA_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX}\"" >> tags.env
cat tags.env
artifacts:
reports:
dotenv: tags.env
.cudnn_template: &cudnn_definition
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
stage: cudnn
script:
- |
# no set +e necessary here since we don't use this yet for kitmaker builds
DIST_BASE_PATH="${DIST_BASE_PATH}/${OS/./}";
if [ ! -z $KITMAKER ] && [ ! -z $TRIGGER ]; then
export DIST_BASE_PATH="kitpick/${OS/./}"
rm -rf kitpick || true
run_cmd mkdir -p kitpick/${OS/./}/{devel,runtime,base}
NEW_CANDIDATE_URL="${CANDIDATE_URL}/${OS/./}"
# Ensure the url ends with a slash! This prevents wget from getting everything (and bringing apache to its knees)
[[ "${CANDIDATE_URL}" != */ ]] && NEW_CANDIDATE_URL="${NEW_CANDIDATE_URL}/"
echo "NEW_CANDIDATE_URL: ${NEW_CANDIDATE_URL}"
if ! retry 3 10 run_cmd wget --no-verbose --recursive --directory-prefix="kitpick_dl" --reject="index.html*" --no-parent ${NEW_CANDIDATE_URL}; then
echo "Could not download files from '${CANDIDATE_URL}'!!"
# kitmaker_webhook_failed
exit 1
fi
run_cmd cp -R kitpick_dl/${NEW_CANDIDATE_URL#"http://"}/{base,devel,runtime} ${DIST_BASE_PATH}/
echo "Contents of ${DIST_BASE_PATH}/"
find kitpick/
export CUDNN_VERSION="cudnn$(grep -r "CUDNN_VERSION" kitpick/ | head -n 1 | cut -f 3 -d" " | tr -d '[:space:]' | cut -c 1)"
fi
echo "DIST_BASE_PATH: ${DIST_BASE_PATH}"
echo "CUDNN_VERSION: ${CUDNN_VERSION}"
if [[ "${NO_OS_SUFFIX}" == "true" ]]; then
TAG_CUDNN_RUNTIME=" -t ${IMAGE_NAME}:${CUDA_VERSION}-${CUDNN_VERSION}-runtime${IMAGE_TAG_SUFFIX} ";
TAG_CUDNN_DEVEL=" -t ${IMAGE_NAME}:${CUDA_VERSION}-${CUDNN_VERSION}-devel${IMAGE_TAG_SUFFIX} ";
export CUDA_EXTRA_TAGS="${CUDA_EXTRA_TAGS} ${CUDA_VERSION}-${CUDNN_VERSION}-runtime${IMAGE_TAG_SUFFIX} ${CUDA_VERSION}-${CUDNN_VERSION}-devel${IMAGE_TAG_SUFFIX}";
fi
export PLATFORM_ARG=`printf '%s ' '--platform'; for var in $(echo $ARCHES | sed "s/,/ /g"); do printf 'linux/%s,' "$var"; done | sed 's/,*$//g'`
echo "PLATFORM_ARG: ${PLATFORM_ARG}"
if ! run_cmd retry 3 10 docker buildx create --use ${PLATFORM_ARG} --driver-opt image=moby/buildkit:v0.8.1 --name cuda; then
echo "Failed creating buildx instance!"
# kitmaker_webhook_failed
exit 1
fi
echo "####################################################################"
echo "CUDNN RUNTIME"
echo "####################################################################"
if ! run_cmd retry 3 10 docker buildx build --pull --push ${PLATFORM_ARG} -t "${IMAGE_NAME}:${CUDA_VERSION}-${CUDNN_VERSION}-runtime-${OS}${IMAGE_TAG_SUFFIX}" ${TAG_CUDNN_RUNTIME} \
--build-arg "IMAGE_NAME=${IMAGE_NAME}" "${DIST_BASE_PATH}/runtime/${CUDNN_VERSION}" \
--build-arg BUILDKIT_INLINE_CACHE=1 --progress plain \
--cache-from=type=registry,ref=${IMAGE_NAME}:${CUDA_VERSION}-${CUDNN_VERSION}-runtime-${OS}${IMAGE_TAG_SUFFIX}; then
echo "Failed building the cudnn runtime image!"
# kitmaker_webhook_failed
exit 1
fi
echo "####################################################################"
echo "CUDNN DEVEL"
echo "####################################################################"
if ! run_cmd retry 3 10 docker buildx build --pull --push ${PLATFORM_ARG} -t "${IMAGE_NAME}:${CUDA_VERSION}-${CUDNN_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX}" ${TAG_CUDNN_DEVEL} \
--build-arg "IMAGE_NAME=${IMAGE_NAME}" "${DIST_BASE_PATH}/devel/${CUDNN_VERSION}" \
--build-arg BUILDKIT_INLINE_CACHE=1 --progress plain \
--cache-from=type=registry,ref=${IMAGE_NAME}:${CUDA_VERSION}-${CUDNN_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX}; then
echo "Failed building the cudnn devel image!"
# kitmaker_webhook_failed
exit 1
fi
# this is not a great way to pass information between stages, but it is currently the only way
echo "CUDA_TAGS=${CUDA_TAGS}" > cudnn_tags.env
echo "CUDA_${CUDNN_VERSION}_TAGS=\"${CUDA_VERSION}-${CUDNN_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX} ${CUDA_VERSION}-${CUDNN_VERSION}-runtime-${OS}${IMAGE_TAG_SUFFIX}\"" >> cudnn_tags.env
echo "CUDA_EXTRA_${CUDNN_VERSION}_TAGS=\"${CUDA_EXTRA_TAGS}\"" >> cudnn_tags.env
cat cudnn_tags.env
artifacts:
reports:
dotenv: cudnn_tags.env
.test_template: &test_definition
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
stage: test
tags:
- cuda-test
script:
- |
set +e
image=${IMAGE_NAME}:${CUDA_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX}
rmicmd="docker rmi -f ${image}"
# prunecmd="docker image prune --filter=dangling=true -f"
if ! bash -e ./test/scripts/bats_install.sh; then
echo "ERROR: Could not install bats-core!"
exit 1
fi
if ! bash -e ./test/scripts/run_tests.sh; then
echo "ERROR: Tests failed!"
${rmicmd}
exit 1
fi
${rmicmd}
.scan_template: &scan_definition
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
stage: scan
<<: *tags_definition
script:
- |
git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab-master.nvidia.com/sectooling/scanning/contamer.git
cd contamer
pip3 install -r requirements.txt
docker pull ${IMAGE_NAME}:${CUDA_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX}
# CVE-2020-14352 CVE-2020-15888: librepo, lua-libs packages WAIVED via https://nvbugswb.nvidia.com/NvBugs5/SWBug.aspx?bugid=3028123&cmtNo=35
# CVE-2019-25013 WAIVED via https://nvbugs/3229249
# CVE-2020-8625 WAIVED via https://nvbugs/3266655
# CVE-2021-25215 WAIVED via https://nvbugs/3303060
# CVE-2020-12362 WAIVED via https://nvbugs/3303060
# CVE-2020-36313 WAIVED via https://nvbugs/3303060
# CVE-2021-3501 WAIVED via https://nvbugs/3303060
# CVE-2021-27219 WAIVED via https://nvbugs/3317302
# CVE-2021-25217 WAIVED via https://nvbugs/3321404
python3 contamer.py --debug-logs -ls --fail-on-non-os ${IMAGE_NAME}:${CUDA_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX} \
--suppress-vulns CVE-2021-27219 CVE-2020-14352 CVE-2020-15888 CVE-2019-25013 CVE-2020-8625 CVE-2021-25215 CVE-2020-12362 CVE-2020-36313 CVE-2021-3501 CVE-2021-25217 | tee /tmp/output
retval=$?
echo "Contamer return value: ${retval}";
docker rmi -f ${IMAGE_NAME}:${CUDA_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX}
if [[ $retval -ne 0 ]]; then
exit 1;
else
# we need to look at the output for "Traceback" because contamer doesn't return non-zero on exception failure...
if cat /tmp/output | grep -q "Traceback\|Exception: Image analysis failed"; then
exit 1;
fi
fi
.deploy_template: &deploy_definition
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
stage: deploy
<<: *tags_definition
script:
- |
set -x
# How gitlab handles errors: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/25394
# prevent exit codes from killing the pipeline completely, errors must now be handled manually
set +e
if [[ -z ${TAG_MANIFEST_PATH} ]]; then export TAG_MANIFEST_PATH=TAG_MANIFEST; fi
for tag in $(env | grep 'CUDA.*_TAGS' | cut -f2 -d=); do
echo ${tag//\"} >> ${TAG_MANIFEST_PATH}
done
echo ">>> BEGIN ${TAG_MANIFEST_PATH} <<<"
cat ${TAG_MANIFEST_PATH}
echo ">>> END ${TAG_MANIFEST_PATH} <<<"
if [ ! -z $KITMAKER ] && [ ! -z $TRIGGER ]; then
manifest_file="manifest.yml"
if ! retry 3 10 wget --no-verbose --directory-prefix="kitpick" --reject="index.html*" --no-parent ${CANDIDATE_URL}/${manifest_file}; then
echo "Could not download files from '${CANDIDATE_URL}'!!"
# kitmaker_webhook_failed
exit 1
fi
export MANIFEST="kitpick/${manifest_file}";
fi
run_cmd skopeo --version
if [[ "${CI_DEFAULT_BRANCH}" != "${CI_COMMIT_BRANCH}" ]]; then
echo -e "\e[31m\e[1m>>>> WARNING <<<<\e[0m"
echo -e "\e[31m\e[1m>>>> Push uses protected variables and the current branch (${CI_COMMIT_BRANCH}) IS NOT the default branch! (${CI_DEFAULT_BRANCH}) Failures may occur! <<<<\e[0m"
echo -e "\e[31m\e[1m>>>> WARNING <<<<\e[0m"
fi
if ! run_cmd retry 3 10 python manager.py ${MANIFEST:+`echo "--manifest ${MANIFEST}"`} push \
--tag-manifest ${TAG_MANIFEST_PATH} \
--image-name "${IMAGE_NAME}" \
--os-name "${OS_NAME}" \
${OS_VERSION:+`echo "--os-version ${OS_VERSION}"`} \
--cuda-version "${CUDA_VERSION}" \
${PIPELINE_NAME:+`echo "--pipeline-name ${PIPELINE_NAME}"`} \
${IMAGE_TAG_SUFFIX:+`echo "--tag-suffix ${IMAGE_TAG_SUFFIX}"`} ${NO_PUSH:+"-n"}; then
echo "Error pushing images!"
# kitmaker_webhook_failed
exit 1
fi
cat $MANIFEST | grep ".*urm.nvidia.com\/sw-gpu-cuda-installer-docker-local\/" | cut -f2 -d: | head -n 1 | xargs >> ${TAG_MANIFEST_PATH}
run_cmd cat ${TAG_MANIFEST_PATH}
set +x
# kitmaker_cleanup_webhook_success
artifacts:
paths:
- ${TAG_MANIFEST_PATH}
trigger:
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
stage: trigger
<<: *tags_definition
variables:
MANIFEST: "manifests/cuda.yaml"
script:
- echo CI_COMMIT_MESSAGE:$CI_COMMIT_MESSAGE
- export ESC_TO=`echo $TRIGGER_OVERRIDE | sed 's/\ //g'`
- export CMD="python manager.py ${MANIFEST:+`echo --manifest ${MANIFEST}`} trigger ${TRIGGER_OVERRIDE:+`echo --trigger-override ${ESC_TO}`}"
- 'echo "COMMAND: $CMD"'
- $CMD
rules:
- if: '$TRIGGER_OVERRIDE'
# Need to pass these from the trigger
.kitmaker_ubuntu20_04_variables: &kitmaker_ubuntu20_04_variables
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda/release-candidate/cuda"
OS: "ubuntu20.04"
OS_NAME: "ubuntu"
OS_VERSION: "20.04"
ARCHES: "x86_64, arm64"
# CI_DEBUG_TRACE: "true"
.kitmaker_ubuntu20_04_only: &kitmaker_ubuntu20_04_only
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
variables:
<<: *kitmaker_ubuntu20_04_variables
TAG_MANIFEST_PATH: "tag_manifest_ubuntu20_04"
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "default"'
- if: $UBUNTU20_04 == "true"
kitmaker_ubuntu20.04_base:
<<: *cuda_base_definition
<<: *kitmaker_ubuntu20_04_only
# Need to build container images on a multi-arch capable machine
<<: *tags_definition_multiarch
kitmaker_ubuntu20.04_deploy:
<<: *deploy_definition
<<: *kitmaker_ubuntu20_04_only
<<: *tags_definition
needs:
- job: kitmaker_ubuntu20.04_base
artifacts: true
artifacts:
paths:
- tag_manifest_ubuntu20_04
# Need to pass these from the trigger
.kitmaker_ubuntu18_04_variables: &kitmaker_ubuntu18_04_variables
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda/release-candidate/cuda"
OS: "ubuntu18.04"
OS_NAME: "ubuntu"
OS_VERSION: "18.04"
ARCHES: "x86_64, arm64"
# CI_DEBUG_TRACE: "true"
.kitmaker_ubuntu18_04_only: &kitmaker_ubuntu18_04_only
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
variables:
<<: *kitmaker_ubuntu18_04_variables
TAG_MANIFEST_PATH: "tag_manifest_ubuntu18_04"
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "default"'
- if: $UBUNTU18_04 == "true"
kitmaker_ubuntu18.04_base:
<<: *cuda_base_definition
<<: *kitmaker_ubuntu18_04_only
# Need to build container images on a multi-arch capable machine
<<: *tags_definition_multiarch
kitmaker_ubuntu18.04_deploy:
<<: *deploy_definition
<<: *kitmaker_ubuntu18_04_only
<<: *tags_definition
needs:
- job: kitmaker_ubuntu18.04_base
artifacts: true
artifacts:
paths:
- tag_manifest_ubuntu18_04
# Need to pass these from the trigger
.kitmaker_centos8_variables: &kitmaker_centos8_variables
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda/release-candidate/cuda"
OS: "centos8"
OS_NAME: "centos"
OS_VERSION: "8"
ARCHES: "x86_64, arm64, ppc64le"
# CI_DEBUG_TRACE: "true"
.kitmaker_centos8_only: &kitmaker_centos8_only
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
variables:
<<: *kitmaker_centos8_variables
TAG_MANIFEST_PATH: "tag_manifest_centos8"
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "default"'
- if: $CENTOS8 == "true"
kitmaker_centos8_base:
<<: *cuda_base_definition
<<: *kitmaker_centos8_only
# Need to build container images on a multi-arch capable machine
<<: *tags_definition_multiarch
kitmaker_centos8_deploy:
<<: *deploy_definition
<<: *kitmaker_centos8_only
<<: *tags_definition
needs:
- job: kitmaker_centos8_base
artifacts: true
artifacts:
paths:
- tag_manifest_centos8
# Need to pass these from the trigger
.kitmaker_centos7_variables: &kitmaker_centos7_variables
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda/release-candidate/cuda"
OS: "centos7"
OS_NAME: "centos"
OS_VERSION: "7"
ARCHES: "x86_64"
# CI_DEBUG_TRACE: "true"
.kitmaker_centos7_only: &kitmaker_centos7_only
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
variables:
<<: *kitmaker_centos7_variables
TAG_MANIFEST_PATH: "tag_manifest_centos7"
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "default"'
- if: $CENTOS7 == "true"
kitmaker_centos7_base:
<<: *cuda_base_definition
<<: *kitmaker_centos7_only
# Need to build container images on a multi-arch capable machine
<<: *tags_definition_multiarch
kitmaker_centos7_deploy:
<<: *deploy_definition
<<: *kitmaker_centos7_only
<<: *tags_definition
needs:
- job: kitmaker_centos7_base
artifacts: true
artifacts:
paths:
- tag_manifest_centos7
# Need to pass these from the trigger
.kitmaker_ubi8_variables: &kitmaker_ubi8_variables
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda/release-candidate/cuda"
OS: "ubi8"
OS_NAME: "ubi"
OS_VERSION: "8"
ARCHES: "x86_64, arm64, ppc64le"
# CI_DEBUG_TRACE: "true"
.kitmaker_ubi8_only: &kitmaker_ubi8_only
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
variables:
<<: *kitmaker_ubi8_variables
TAG_MANIFEST_PATH: "tag_manifest_ubi8"
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "default"'
- if: $UBI8 == "true"
kitmaker_ubi8_base:
<<: *cuda_base_definition
<<: *kitmaker_ubi8_only
# Need to build container images on a multi-arch capable machine
<<: *tags_definition_multiarch
kitmaker_ubi8_deploy:
<<: *deploy_definition
<<: *kitmaker_ubi8_only
<<: *tags_definition
needs:
- job: kitmaker_ubi8_base
artifacts: true
artifacts:
paths:
- tag_manifest_ubi8
# Need to pass these from the trigger
.kitmaker_ubi7_variables: &kitmaker_ubi7_variables
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda/release-candidate/cuda"
OS: "ubi7"
OS_NAME: "ubi"
OS_VERSION: "7"
ARCHES: "x86_64"
# CI_DEBUG_TRACE: "true"
.kitmaker_ubi7_only: &kitmaker_ubi7_only
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
variables:
<<: *kitmaker_ubi7_variables
TAG_MANIFEST_PATH: "tag_manifest_ubi7"
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "default"'
- if: $UBI7 == "true"
kitmaker_ubi7_base:
<<: *cuda_base_definition
<<: *kitmaker_ubi7_only
# Need to build container images on a multi-arch capable machine
<<: *tags_definition_multiarch
kitmaker_ubi7_deploy:
<<: *deploy_definition
<<: *kitmaker_ubi7_only
<<: *tags_definition
needs:
- job: kitmaker_ubi7_base
artifacts: true
artifacts:
paths:
- tag_manifest_ubi7
# Need to pass these from the trigger
.kitmaker_l4t_cuda_l4t_variables: &kitmaker_l4t_cuda_l4t_variables
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda/l4t-cuda"
OS: "l4t-cuda"
OS_NAME: "l4t-cuda"
OS_VERSION: ""
ARCHES: "arm64"
FLAVOR: "l4t"
# CI_DEBUG_TRACE: "true"
.kitmaker_l4t_cuda_l4t_only: &kitmaker_l4t_cuda_l4t_only
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
variables:
<<: *kitmaker_l4t_cuda_l4t_variables
TAG_MANIFEST_PATH: "tag_manifest_l4t_cuda_l4t"
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "l4t"'
- if: $L4T_CUDA_L4T == "true"
kitmaker_l4t-cuda_l4t_base:
<<: *cuda_base_definition
<<: *kitmaker_l4t_cuda_l4t_only
# Need to build container images on a multi-arch capable machine
<<: *tags_definition_multiarch
# L4T only, will be removed eventually!
kitmaker_l4t-cuda_l4t_cudnn:
<<: *cudnn_definition
<<: *kitmaker_l4t_cuda_l4t_only
# Need to build container images on a multi-arch capable machine
<<: *tags_definition_multiarch
artifacts:
reports:
dotenv: cudnn_tags.env
kitmaker_l4t-cuda_l4t_deploy:
<<: *deploy_definition
<<: *kitmaker_l4t_cuda_l4t_only
<<: *tags_definition
needs:
- job: kitmaker_l4t-cuda_l4t_base
artifacts: true
- job: kitmaker_l4t-cuda_l4t_cudnn
optional: true
artifacts:
paths:
- tag_manifest_l4t_cuda_l4t
kitmaker_l4t_success:
stage: cleanup_success
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
<<: *tags_definition
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "l4t"'
when: on_success
script:
- |
kitmaker_cleanup_webhook_success
kitmaker_l4t_failure:
stage: cleanup_failure
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
<<: *tags_definition
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "l4t"'
when: on_failure
script:
- |
kitmaker_webhook_failed
kitmaker_success:
stage: cleanup_success
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
<<: *tags_definition
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "default"'
when: on_success
needs:
- job: kitmaker_ubuntu20.04_deploy
artifacts: true
- job: kitmaker_ubuntu18.04_deploy
- job: kitmaker_centos8_deploy
- job: kitmaker_centos7_deploy
- job: kitmaker_ubi8_deploy
- job: kitmaker_ubi7_deploy
script:
- |
kitmaker_cleanup_webhook_success
kitmaker_failure:
stage: cleanup_failure
image: gitlab-master.nvidia.com:5005/cuda-installer/cuda/gitlab-cuda-builder
<<: *tags_definition
rules:
- if: '$TRIGGER == "true" && $KITMAKER == "true" && $FLAVOR == "default"'
when: on_failure
script:
- |
kitmaker_webhook_failed
.centos7_11_5_0_variables: ¢os7_11_5_0_variables
DIST_BASE_PATH: "dist/11.5.0"
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda"
MANIFEST: "manifests/cuda.yaml"
ARCHES: "x86_64"
OS: "centos7"
OS_NAME: "centos"
OS_VERSION: "7"
CUDA_VERSION: "11.5.0"
.centos7_11_5_0_only: ¢os7_11_5_0_only
<<: *tags_definition_multiarch
variables:
<<: *centos7_11_5_0_variables
rules:
- if: '$centos7_11_5_0 == "true"'
- if: '$all == "true"'
centos7-v11.5.0:
<<: *cuda_base_definition
<<: *centos7_11_5_0_only
centos7-v11.5.0-test-x86_64:
needs: ["centos7-v11.5.0"]
<<: *centos7_11_5_0_only
<<: *test_definition
variables:
<<: *centos7_11_5_0_variables
ARCH: "x86_64"
rules:
- if: '$NO_TEST == "true"'
when: never
- if: '$centos7_11_5_0 == "true"'
- if: '$all == "true"'
centos7-v11.5.0-scan-x86_64:
<<: *scan_definition
<<: *centos7_11_5_0_only
needs:
- job: centos7-v11.5.0
- job: centos7-v11.5.0-test-x86_64
optional: true
variables:
<<: *centos7_11_5_0_variables
ARCH: "x86_64"
# Override rules from only definition
rules:
- if: '$NO_SCAN == "true" || $NO_TEST == "true"'
when: never
- if: '$centos7_11_5_0 == "true"'
- if: '$all == "true"'
centos7-v11.5.0-deploy:
<<: *deploy_definition
<<: *centos7_11_5_0_only
# Override rules from only definition
rules:
- if: '($NO_TEST == "true" || $NO_SCAN == "true") && $NO_PUSH == "false"'
when: never
- if: '$centos7_11_5_0 == "true"'
- if: '$all == "true"'
needs:
- job: centos7-v11.5.0
artifacts: true
- job: centos7-v11.5.0-test-x86_64
optional: true
- job: centos7-v11.5.0-scan-x86_64
optional: true
.centos8_11_5_0_variables: ¢os8_11_5_0_variables
DIST_BASE_PATH: "dist/11.5.0"
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda"
MANIFEST: "manifests/cuda.yaml"
ARCHES: "arm64, ppc64le, x86_64"
OS: "centos8"
OS_NAME: "centos"
OS_VERSION: "8"
CUDA_VERSION: "11.5.0"
.centos8_11_5_0_only: ¢os8_11_5_0_only
<<: *tags_definition_multiarch
variables:
<<: *centos8_11_5_0_variables
rules:
- if: '$centos8_11_5_0 == "true"'
- if: '$all == "true"'
centos8-v11.5.0:
<<: *cuda_base_definition
<<: *centos8_11_5_0_only
centos8-v11.5.0-test-arm64:
needs: ["centos8-v11.5.0"]
<<: *centos8_11_5_0_only
<<: *test_definition
variables:
<<: *centos8_11_5_0_variables
ARCH: "arm64"
rules:
- if: '$NO_TEST == "true"'
when: never
- if: '$centos8_11_5_0 == "true"'
- if: '$all == "true"'
centos8-v11.5.0-scan-arm64:
<<: *scan_definition
<<: *centos8_11_5_0_only
needs:
- job: centos8-v11.5.0
- job: centos8-v11.5.0-test-arm64
optional: true
variables:
<<: *centos8_11_5_0_variables
ARCH: "arm64"
# Override rules from only definition
rules:
- if: '$NO_SCAN == "true" || $NO_TEST == "true"'
when: never
- if: '$centos8_11_5_0 == "true"'
- if: '$all == "true"'
centos8-v11.5.0-test-ppc64le:
needs: ["centos8-v11.5.0"]
<<: *centos8_11_5_0_only
<<: *test_definition
variables:
<<: *centos8_11_5_0_variables
ARCH: "ppc64le"
rules:
- if: '$NO_TEST == "true"'
when: never
- if: '$centos8_11_5_0 == "true"'
- if: '$all == "true"'
centos8-v11.5.0-scan-ppc64le:
<<: *scan_definition
<<: *centos8_11_5_0_only
needs:
- job: centos8-v11.5.0
- job: centos8-v11.5.0-test-ppc64le
optional: true
variables:
<<: *centos8_11_5_0_variables
ARCH: "ppc64le"
# Override rules from only definition
rules:
- if: '$NO_SCAN == "true" || $NO_TEST == "true"'
when: never
- if: '$centos8_11_5_0 == "true"'
- if: '$all == "true"'
centos8-v11.5.0-test-x86_64:
needs: ["centos8-v11.5.0"]
<<: *centos8_11_5_0_only
<<: *test_definition
variables:
<<: *centos8_11_5_0_variables
ARCH: "x86_64"
rules:
- if: '$NO_TEST == "true"'
when: never
- if: '$centos8_11_5_0 == "true"'
- if: '$all == "true"'
centos8-v11.5.0-scan-x86_64:
<<: *scan_definition
<<: *centos8_11_5_0_only
needs:
- job: centos8-v11.5.0
- job: centos8-v11.5.0-test-x86_64
optional: true
variables:
<<: *centos8_11_5_0_variables
ARCH: "x86_64"
# Override rules from only definition
rules:
- if: '$NO_SCAN == "true" || $NO_TEST == "true"'
when: never
- if: '$centos8_11_5_0 == "true"'
- if: '$all == "true"'
centos8-v11.5.0-deploy:
<<: *deploy_definition
<<: *centos8_11_5_0_only
# Override rules from only definition
rules:
- if: '($NO_TEST == "true" || $NO_SCAN == "true") && $NO_PUSH == "false"'
when: never
- if: '$centos8_11_5_0 == "true"'
- if: '$all == "true"'
needs:
- job: centos8-v11.5.0
artifacts: true
- job: centos8-v11.5.0-test-arm64
optional: true
- job: centos8-v11.5.0-scan-arm64
optional: true
- job: centos8-v11.5.0-test-ppc64le
optional: true
- job: centos8-v11.5.0-scan-ppc64le
optional: true
- job: centos8-v11.5.0-test-x86_64
optional: true
- job: centos8-v11.5.0-scan-x86_64
optional: true
.ubi7_11_5_0_variables: &ubi7_11_5_0_variables
DIST_BASE_PATH: "dist/11.5.0"
IMAGE_NAME: "gitlab-master.nvidia.com:5005/cuda-installer/cuda"
MANIFEST: "manifests/cuda.yaml"
ARCHES: "x86_64"
OS: "ubi7"
OS_NAME: "ubi"
OS_VERSION: "7"
CUDA_VERSION: "11.5.0"
.ubi7_11_5_0_only: &ubi7_11_5_0_only
<<: *tags_definition_multiarch
variables:
<<: *ubi7_11_5_0_variables
rules:
- if: '$ubi7_11_5_0 == "true"'
- if: '$all == "true"'
ubi7-v11.5.0:
<<: *cuda_base_definition
<<: *ubi7_11_5_0_only
ubi7-v11.5.0-test-x86_64:
needs: ["ubi7-v11.5.0"]
<<: *ubi7_11_5_0_only
<<: *test_definition
variables:
<<: *ubi7_11_5_0_variables
ARCH: "x86_64"
rules:
- if: '$NO_TEST == "true"'
when: never
- if: '$ubi7_11_5_0 == "true"'
- if: '$all == "true"'
ubi7-v11.5.0-scan-x86_64:
<<: *scan_definition
<<: *ubi7_11_5_0_only
needs:
- job: ubi7-v11.5.0
- job: ubi7-v11.5.0-test-x86_64
optional: true
variables:
<<: *ubi7_11_5_0_variables
ARCH: "x86_64"
# Override rules from only definition
rules:
- if: '$NO_SCAN == "true" || $NO_TEST == "true"'
when: never
- if: '$ubi7_11_5_0 == "true"'
- if: '$all == "true"'
ubi7-v11.5.0-deploy:
<<: *deploy_definition
<<: *ubi7_11_5_0_only
# Override rules from only definition
rules:
- if: '($NO_TEST == "true" || $NO_SCAN == "true") && $NO_PUSH == "false"'
when: never
- if: '$ubi7_11_5_0 == "true"'
- if: '$all == "true"'
needs:
- job: ubi7-v11.5.0
artifacts: true
- job: ubi7-v11.5.0-test-x86_64
optional: true
- job: ubi7-v11.5.0-scan-x86_64
optional: true
.ubi8_11_5_0_variables: &ubi8_11_5_0_variables