-
Notifications
You must be signed in to change notification settings - Fork 140
1707 lines (1546 loc) · 72.5 KB
/
Copy pathci.yaml
File metadata and controls
1707 lines (1546 loc) · 72.5 KB
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
#
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: NICo Core CI
on:
push:
branches:
- main
- "pull-request/[0-9]+"
tags:
- "v[0-9]*.[0-9]*.[0-9]*"
- "v[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]*"
- "v[0-9].[0-9].[0-9]-rc[0-9]*"
env:
# Build configuration
CARGO_INCREMENTAL: 0
CARGO_HOME: ${{ github.workspace }}/cargo
FF_USE_FASTZIP: "true"
GIT_SUBMODULE_STRATEGY: recursive
jobs:
changes:
name: Detect Core CI Gate
runs-on: ubuntu-latest
outputs:
run_core_ci: ${{ steps.gate.outputs.run_core_ci }}
non_rest_changed: ${{ steps.non-rest-changes.outputs.non_rest }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Detect non-rest changes
id: non-rest-changes
if: startsWith(github.ref, 'refs/heads/pull-request/')
uses: dorny/paths-filter@v3
with:
base: main
predicate-quantifier: every
filters: |
non_rest:
- '**'
- '!rest-api/**'
- '!.github/workflows/rest-*.yml'
- '!helm/rest/**'
- '!docs/**'
- '!fern/**'
- name: Decide whether Core CI should run
id: gate
env:
REF: ${{ github.ref }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message || '' }}
NON_REST_CHANGED: ${{ steps.non-rest-changes.outputs.non_rest }}
run: |
run_core_ci=true
if [[ "${REF}" =~ ^refs/heads/pull-request/[0-9]+$ ]]; then
run_core_ci="${NON_REST_CHANGED}"
fi
if [[ "${COMMIT_MESSAGE}" =~ ci-run-complete-pipeline ]]; then
run_core_ci=true
fi
echo "run_core_ci=${run_core_ci}" >> "$GITHUB_OUTPUT"
echo "Core CI gate: ${run_core_ci}"
# ============================================================================
# PREPARE STAGE
# ============================================================================
prepare:
needs:
- changes
if: ${{ needs.changes.outputs.run_core_ci == 'true' }}
runs-on: linux-amd64-cpu4
outputs:
version: ${{ steps.version.outputs.version }}
helm_version: ${{ steps.version.outputs.helm_version }}
short_sha: ${{ steps.version.outputs.short_sha }}
extras_container_ref: ${{ steps.resolve-extras.outputs.extras_container_ref }}
build_container_x86_64_run: ${{ steps.base-container-gate.outputs.build_container_x86_64_run }}
build_container_x86_64_version: ${{ steps.base-container-gate.outputs.build_container_x86_64_version }}
runtime_container_x86_64_run: ${{ steps.base-container-gate.outputs.runtime_container_x86_64_run }}
runtime_container_x86_64_version: ${{ steps.base-container-gate.outputs.runtime_container_x86_64_version }}
build_container_aarch64_run: ${{ steps.base-container-gate.outputs.build_container_aarch64_run }}
build_container_aarch64_version: ${{ steps.base-container-gate.outputs.build_container_aarch64_version }}
build_artifacts_container_x86_64_run: ${{ steps.base-container-gate.outputs.build_artifacts_container_x86_64_run }}
build_artifacts_container_x86_64_version: ${{ steps.base-container-gate.outputs.build_artifacts_container_x86_64_version }}
build_artifacts_container_aarch64_run: ${{ steps.base-container-gate.outputs.build_artifacts_container_aarch64_run }}
build_artifacts_container_aarch64_version: ${{ steps.base-container-gate.outputs.build_artifacts_container_aarch64_version }}
runtime_container_aarch64_run: ${{ steps.base-container-gate.outputs.runtime_container_aarch64_run }}
runtime_container_aarch64_version: ${{ steps.base-container-gate.outputs.runtime_container_aarch64_version }}
proto_files_changed: ${{ steps.base-container-gate.outputs.proto_files_changed }}
core_rpc_proto_files_changed: ${{ steps.base-container-gate.outputs.core_rpc_proto_files_changed }}
source_files_changed: ${{ steps.base-container-gate.outputs.source_files_changed }}
release_build_args: ${{ steps.release-metadata.outputs.build_args }}
release_build_args_aarch64: ${{ steps.release-metadata.outputs.build_args_aarch64 }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Detect build-container-x86_64 changes
id: build-container-changes
uses: dorny/paths-filter@v3
with:
filters: |
build_container:
- 'dev/docker/Dockerfile.build-container-x86_64'
runtime_container:
- 'dev/docker/Dockerfile.runtime-container-x86_64'
runtime_container_aarch64:
- 'dev/docker/Dockerfile.runtime-container-aarch64'
build_container_aarch64:
- 'dev/docker/Dockerfile.build-container-aarch64'
build_artifacts_x86_64:
- 'dev/docker/Dockerfile.build-artifacts-container-x86_64'
build_artifacts_aarch64:
- 'dev/docker/Dockerfile.build-artifacts-container-aarch64'
proto_files:
- '**/*.proto'
core_rpc_proto_files:
- 'crates/rpc/proto/**'
source_files:
- 'crates/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'Makefile.toml'
- 'rust-toolchain.toml'
- name: Calculate version
id: version
run: |
set -euo pipefail
# Fetch tags for accurate git describe
git fetch --tags --force
SHORT_SHA=$(git rev-parse --short=7 HEAD)
echo "short_sha=${SHORT_SHA}" >> $GITHUB_OUTPUT
echo "Using Git describe to extract version as VERSION and HELM_VERSION"
VERSION=$(git describe --tags --first-parent --always --long)
# HELM_VERSION strips leading 'v' for strict SemVer and replaces the last '-' with '.'
HELM_VERSION_BASE="${VERSION#v}"
HELM_VERSION=$(echo "$HELM_VERSION_BASE" | sed 's/\(.*\)-/\1./')
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "helm_version=${HELM_VERSION}" >> $GITHUB_OUTPUT
echo "Calculated VERSION: ${VERSION}"
echo "Calculated HELM_VERSION: ${HELM_VERSION}"
# Output to GitHub Summary
echo "## 📦 Build Version" >> $GITHUB_STEP_SUMMARY
echo "| Variable | Value |" >> $GITHUB_STEP_SUMMARY
echo "|----------|-------|" >> $GITHUB_STEP_SUMMARY
echo "| VERSION | \`${VERSION}\` |" >> $GITHUB_STEP_SUMMARY
echo "| HELM_VERSION | \`${HELM_VERSION}\` |" >> $GITHUB_STEP_SUMMARY
- name: Login to NVCR
uses: ./.github/actions/docker-auth
with:
username: ${{ secrets.NVCR_USERNAME }}
token: ${{ secrets.NVCR_TOKEN }}
- name: Resolve pinned carbide-extras image digest
id: resolve-extras
env:
EXTRAS_IMAGE: nvcr.io/0837451325059433/carbide-dev/nvmetal-carbide-extras:latest
run: |
set -euo pipefail
docker pull "${EXTRAS_IMAGE}"
EXTRAS_REF="$(docker inspect --format='{{index .RepoDigests 0}}' "${EXTRAS_IMAGE}")"
if [ -z "${EXTRAS_REF}" ]; then
echo "::error::Failed to resolve digest for ${EXTRAS_IMAGE}"
exit 1
fi
echo "extras_container_ref=${EXTRAS_REF}" >> "$GITHUB_OUTPUT"
echo "Resolved extras image to pinned digest: ${EXTRAS_REF}"
echo "## 📌 Carbide Extras Image" >> "$GITHUB_STEP_SUMMARY"
echo "| Requested | Pinned |" >> "$GITHUB_STEP_SUMMARY"
echo "|-----------|--------|" >> "$GITHUB_STEP_SUMMARY"
echo "| \`${EXTRAS_IMAGE}\` | \`${EXTRAS_REF}\` |" >> "$GITHUB_STEP_SUMMARY"
- name: Decide if build-container-x86_64 must run
id: base-container-gate
env:
EVENT_NAME: ${{ github.event_name }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message || '' }}
VERSION: ${{ steps.version.outputs.version }}
BUILD_CONTAINER_X86_64_DOCKERFILE_CHANGED: ${{ steps.build-container-changes.outputs.build_container }}
RUNTIME_CONTAINER_X86_64_DOCKERFILE_CHANGED: ${{ steps.build-container-changes.outputs.runtime_container }}
RUNTIME_CONTAINER_AARCH64_DOCKERFILE_CHANGED: ${{ steps.build-container-changes.outputs.runtime_container_aarch64 }}
BUILD_CONTAINER_AARCH64_DOCKERFILE_CHANGED: ${{ steps.build-container-changes.outputs.build_container_aarch64 }}
BUILD_ARTIFACTS_X86_64_DOCKERFILE_CHANGED: ${{ steps.build-container-changes.outputs.build_artifacts_x86_64 }}
BUILD_ARTIFACTS_AARCH64_DOCKERFILE_CHANGED: ${{ steps.build-container-changes.outputs.build_artifacts_aarch64 }}
PROTO_FILES_CHANGED: ${{ steps.build-container-changes.outputs.proto_files }}
CORE_RPC_PROTO_FILES_CHANGED: ${{ steps.build-container-changes.outputs.core_rpc_proto_files }}
SOURCE_FILES_CHANGED: ${{ steps.build-container-changes.outputs.source_files }}
run: |
build_container_x86_64_run=false
runtime_container_x86_64_run=false
build_container_aarch64_run=false
runtime_container_aarch64_run=false
build_artifacts_container_x86_64_run=false
build_artifacts_container_aarch64_run=false
proto_files_changed=false
core_rpc_proto_files_changed=false
source_files_changed=false
if [[ "${COMMIT_MESSAGE}" =~ ci-rebuild-base-containers ]]; then
build_container_x86_64_run=true
runtime_container_x86_64_run=true
build_container_aarch64_run=true
runtime_container_aarch64_run=true
build_artifacts_container_x86_64_run=true
build_artifacts_container_aarch64_run=true
elif [[ "${BUILD_CONTAINER_X86_64_DOCKERFILE_CHANGED}" == "true" ]]; then
build_container_x86_64_run=true
fi
if [[ "${PROTO_FILES_CHANGED}" == "true" ]]; then
proto_files_changed=true
fi
if [[ "${CORE_RPC_PROTO_FILES_CHANGED}" == "true" ]]; then
core_rpc_proto_files_changed=true
fi
if [[ "${SOURCE_FILES_CHANGED}" == "true" ]]; then
source_files_changed=true
fi
if [[ "${RUNTIME_CONTAINER_X86_64_DOCKERFILE_CHANGED}" == "true" ]]; then
runtime_container_x86_64_run=true
fi
if [[ "${RUNTIME_CONTAINER_AARCH64_DOCKERFILE_CHANGED}" == "true" ]]; then
runtime_container_aarch64_run=true
fi
if [[ "${BUILD_CONTAINER_AARCH64_DOCKERFILE_CHANGED}" == "true" ]]; then
build_container_aarch64_run=true
fi
if [[ "${BUILD_ARTIFACTS_X86_64_DOCKERFILE_CHANGED}" == "true" ]]; then
build_artifacts_container_x86_64_run=true
fi
if [[ "${BUILD_ARTIFACTS_AARCH64_DOCKERFILE_CHANGED}" == "true" ]]; then
build_artifacts_container_aarch64_run=true
fi
echo "build_container_x86_64_run=${build_container_x86_64_run}" >> "$GITHUB_OUTPUT"
echo "runtime_container_x86_64_run=${runtime_container_x86_64_run}" >> "$GITHUB_OUTPUT"
echo "build_container_aarch64_run=${build_container_aarch64_run}" >> "$GITHUB_OUTPUT"
echo "runtime_container_aarch64_run=${runtime_container_aarch64_run}" >> "$GITHUB_OUTPUT"
echo "build_artifacts_container_x86_64_run=${build_artifacts_container_x86_64_run}" >> "$GITHUB_OUTPUT"
echo "build_artifacts_container_aarch64_run=${build_artifacts_container_aarch64_run}" >> "$GITHUB_OUTPUT"
echo "proto_files_changed=${proto_files_changed}" >> "$GITHUB_OUTPUT"
echo "core_rpc_proto_files_changed=${core_rpc_proto_files_changed}" >> "$GITHUB_OUTPUT"
echo "source_files_changed=${source_files_changed}" >> "$GITHUB_OUTPUT"
if [[ "$build_container_x86_64_run" == "true" ]]; then
echo "build_container_x86_64_version=${VERSION}" >> "$GITHUB_OUTPUT"
else
echo "build_container_x86_64_version=latest" >> "$GITHUB_OUTPUT"
fi
if [[ "$runtime_container_x86_64_run" == "true" ]]; then
echo "runtime_container_x86_64_version=${VERSION}" >> "$GITHUB_OUTPUT"
else
echo "runtime_container_x86_64_version=latest" >> "$GITHUB_OUTPUT"
fi
if [[ "$build_container_aarch64_run" == "true" ]]; then
echo "build_container_aarch64_version=${VERSION}" >> "$GITHUB_OUTPUT"
else
echo "build_container_aarch64_version=latest" >> "$GITHUB_OUTPUT"
fi
if [[ "$runtime_container_aarch64_run" == "true" ]]; then
echo "runtime_container_aarch64_version=${VERSION}" >> "$GITHUB_OUTPUT"
else
echo "runtime_container_aarch64_version=latest" >> "$GITHUB_OUTPUT"
fi
if [[ "$build_artifacts_container_x86_64_run" == "true" ]]; then
echo "build_artifacts_container_x86_64_version=${VERSION}" >> "$GITHUB_OUTPUT"
else
echo "build_artifacts_container_x86_64_version=latest" >> "$GITHUB_OUTPUT"
fi
if [[ "$build_artifacts_container_aarch64_run" == "true" ]]; then
echo "build_artifacts_container_aarch64_version=${VERSION}" >> "$GITHUB_OUTPUT"
else
echo "build_artifacts_container_aarch64_version=latest" >> "$GITHUB_OUTPUT"
fi
- name: Decide release container publish strategy
id: release-gate
env:
EVENT_NAME: ${{ github.event_name }}
REF: ${{ github.ref }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message || '' }}
run: |
PUBLISH=false
if [[ "${EVENT_NAME}" == "pull_request" ]] || [[ "${REF}" =~ pull-request/[0-9]+ ]] ; then
PUBLISH=false
elif [[ "${REF}" == "refs/heads/main" ]] || [[ "${REF}" =~ ^refs/heads/release/ ]] || [[ "${REF}" =~ ^refs/tags/ ]] || [[ "${COMMIT_MESSAGE}" =~ ci-run-complete-pipeline ]]; then
PUBLISH=true
fi
echo "publish_built_container=${PUBLISH}" >> "$GITHUB_OUTPUT"
- name: Prepare release container build args
id: release-metadata
env:
VERSION: ${{ steps.version.outputs.version }}
SHORT_SHA: ${{ steps.version.outputs.short_sha }}
BUILD_VERSION: ${{ steps.base-container-gate.outputs.build_container_x86_64_version }}
RUNTIME_VERSION: ${{ steps.base-container-gate.outputs.runtime_container_x86_64_version }}
BUILD_VERSION_AARCH64: ${{ steps.base-container-gate.outputs.build_container_aarch64_version }}
RUNTIME_VERSION_AARCH64: ${{ steps.base-container-gate.outputs.runtime_container_aarch64_version }}
run: |
set -euo pipefail
# x86_64 build args
BUILD_REF="nvcr.io/0837451325059433/carbide-dev/build-container-x86_64:${BUILD_VERSION}"
RUNTIME_REF="nvcr.io/0837451325059433/carbide-dev/runtime-container-x86_64:${RUNTIME_VERSION}"
BUILD_ARGS=$(jq -n -c \
--arg VERSION "$VERSION" \
--arg SHORT_SHA "$SHORT_SHA" \
--arg BUILD "$BUILD_REF" \
--arg RUNTIME "$RUNTIME_REF" \
'{VERSION: $VERSION, CI_COMMIT_SHORT_SHA: $SHORT_SHA, CONTAINER_BUILD_X86_64: $BUILD, CONTAINER_RUNTIME_X86_64: $RUNTIME}')
echo "build_args=${BUILD_ARGS}" >> "$GITHUB_OUTPUT"
# aarch64 build args
BUILD_REF_AARCH64="nvcr.io/0837451325059433/carbide-dev/build-container-aarch64:${BUILD_VERSION_AARCH64}"
RUNTIME_REF_AARCH64="nvcr.io/0837451325059433/carbide-dev/runtime-container-aarch64:${RUNTIME_VERSION_AARCH64}"
BUILD_ARGS_AARCH64=$(jq -n -c \
--arg VERSION "$VERSION" \
--arg SHORT_SHA "$SHORT_SHA" \
--arg BUILD "$BUILD_REF_AARCH64" \
--arg RUNTIME "$RUNTIME_REF_AARCH64" \
'{VERSION: $VERSION, CI_COMMIT_SHORT_SHA: $SHORT_SHA, CONTAINER_BUILD_AARCH64: $BUILD, CONTAINER_RUNTIME_AARCH64: $RUNTIME}')
echo "build_args_aarch64=${BUILD_ARGS_AARCH64}" >> "$GITHUB_OUTPUT"
# ============================================================================
# BUILD STAGE - Base Containers
# ============================================================================
build-container-x86_64:
if: needs.prepare.outputs.build_container_x86_64_run == 'true'
needs:
- prepare
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.build-container-x86_64
image_name: nvcr.io/0837451325059433/carbide-dev/build-container-x86_64
image_tag: ${{ needs.prepare.outputs.build_container_x86_64_version }}
platforms: linux/amd64
runner: linux-amd64-cpu4
push: true
load: true
tag_latest: ${{ github.ref == 'refs/heads/main' }}
secrets: inherit
build-container-aarch64:
if: needs.prepare.outputs.build_container_aarch64_run == 'true'
needs:
- prepare
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.build-container-aarch64
image_name: nvcr.io/0837451325059433/carbide-dev/build-container-aarch64
image_tag: ${{ needs.prepare.outputs.build_container_aarch64_version }}
platforms: linux/arm64
runner: linux-arm64-cpu4
push: true
load: false
tag_latest: ${{ github.ref == 'refs/heads/main' }}
secrets: inherit
build-runtime-container-x86_64:
if: needs.prepare.outputs.runtime_container_x86_64_run == 'true'
needs:
- prepare
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.runtime-container-x86_64
image_name: nvcr.io/0837451325059433/carbide-dev/runtime-container-x86_64
image_tag: ${{ needs.prepare.outputs.runtime_container_x86_64_version }}
platforms: linux/amd64
runner: linux-amd64-cpu4
push: true
load: true
tag_latest: ${{ github.ref == 'refs/heads/main' }}
secrets: inherit
build-runtime-container-aarch64:
if: needs.prepare.outputs.runtime_container_aarch64_run == 'true'
needs:
- prepare
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.runtime-container-aarch64
image_name: nvcr.io/0837451325059433/carbide-dev/runtime-container-aarch64
image_tag: ${{ needs.prepare.outputs.runtime_container_aarch64_version }}
platforms: linux/arm64
runner: linux-arm64-cpu4
push: true
load: false
tag_latest: ${{ github.ref == 'refs/heads/main' }}
secrets: inherit
build-artifacts-container-x86_64:
if: needs.prepare.outputs.build_artifacts_container_x86_64_run == 'true'
needs:
- prepare
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.build-artifacts-container-x86_64
image_name: nvcr.io/0837451325059433/carbide-dev/build-artifacts-container-x86_64
image_tag: ${{ needs.prepare.outputs.build_artifacts_container_x86_64_version }}
platforms: linux/amd64
runner: linux-amd64-cpu4
push: true
load: true
tag_latest: ${{ github.ref == 'refs/heads/main' }}
secrets: inherit
build-artifacts-container-aarch64:
if: needs.prepare.outputs.build_artifacts_container_aarch64_run == 'true'
needs:
- prepare
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.build-artifacts-container-aarch64
image_name: nvcr.io/0837451325059433/carbide-dev/build-artifacts-container-aarch64
image_tag: ${{ needs.prepare.outputs.build_artifacts_container_aarch64_version }}
platforms: linux/arm64
runner: linux-arm64-cpu4
push: true
load: false
tag_latest: ${{ github.ref == 'refs/heads/main' }}
secrets: inherit
# ============================================================================
# BUILD STAGE - Release Container
# ============================================================================
build-release-container-x86_64:
if: >-
${{
always()
&& github.event_name != 'schedule'
&& needs.prepare.result == 'success'
&& contains('success,skipped', needs.build-container-x86_64.result)
&& contains('success,skipped', needs.build-runtime-container-x86_64.result)
&& contains('success,skipped', needs.check-rest-core-proto-sync.result)
&& contains('success,skipped', needs.lint-police.result)
}}
needs:
- prepare
- build-container-x86_64
- build-runtime-container-x86_64
- check-rest-core-proto-sync
- lint-police
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.release-container-x86_64
context_path: .
build_args: ${{ needs.prepare.outputs.release_build_args }}
image_name: nvcr.io/0837451325059433/carbide-dev/nvmetal-carbide
image_tag: ${{ needs.prepare.outputs.version }}
platforms: linux/amd64
runner: linux-amd64-cpu16
push: ${{ !contains(github.ref, 'pull-request/') }}
load: true
scan: true
tag_latest: false
timeout_minutes: 120
secrets: inherit
build-release-container-aarch64:
if: >-
${{
always()
&& github.event_name != 'schedule'
&& needs.prepare.result == 'success'
&& contains('success,skipped', needs.build-container-aarch64.result)
&& contains('success,skipped', needs.build-runtime-container-aarch64.result)
&& contains('success,skipped', needs.check-rest-core-proto-sync.result)
}}
needs:
- prepare
- build-container-aarch64
- build-runtime-container-aarch64
- check-rest-core-proto-sync
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.release-container-aarch64
context_path: .
build_args: ${{ needs.prepare.outputs.release_build_args_aarch64 }}
image_name: nvcr.io/0837451325059433/carbide-dev/nvmetal-carbide-aarch64
image_tag: ${{ needs.prepare.outputs.version }}
platforms: linux/arm64
runner: linux-arm64-cpu16
push: ${{ !contains(github.ref, 'pull-request/') }}
load: false
tag_latest: false
secrets: inherit
# Combine the per-arch nvmetal-carbide images into a single multi-arch manifest
# at the bare tag, so the carbide control plane can be scheduled on both amd64
# and arm64 nodes. The per-arch images are still pushed individually
# (nvmetal-carbide = amd64, nvmetal-carbide-aarch64 = arm64). Sources are
# referenced by digest so re-runs are idempotent. Push refs only.
merge-manifests-nvmetal-carbide:
needs:
- prepare
- build-release-container-x86_64
- build-release-container-aarch64
if: ${{ !cancelled() && github.event_name != 'schedule' && !contains(github.ref, 'pull-request/') && needs.build-release-container-x86_64.result == 'success' && needs.build-release-container-aarch64.result == 'success' }}
runs-on: linux-amd64-cpu4
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to NVCR
uses: ./.github/actions/docker-auth
with:
username: ${{ secrets.NVCR_USERNAME }}
token: ${{ secrets.NVCR_TOKEN }}
- name: Create and push multi-arch manifest
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08
with:
max_attempts: 3
timeout_minutes: 10
retry_wait_seconds: 20
command: |
docker buildx imagetools create -t \
nvcr.io/0837451325059433/carbide-dev/nvmetal-carbide:${{ needs.prepare.outputs.version }} \
nvcr.io/0837451325059433/carbide-dev/nvmetal-carbide@${{ needs.build-release-container-x86_64.outputs.image_digest }} \
nvcr.io/0837451325059433/carbide-dev/nvmetal-carbide-aarch64@${{ needs.build-release-container-aarch64.outputs.image_digest }}
test-release-container-services:
if: >-
${{
always()
&& github.event_name != 'schedule'
&& needs.prepare.result == 'success'
&& contains('success,skipped', needs.build-container-x86_64.result)
&& contains('success,skipped', needs.build-runtime-container-x86_64.result)
&& contains('success,skipped', needs.check-rest-core-proto-sync.result)
}}
needs:
- prepare
- build-container-x86_64
- build-runtime-container-x86_64
- check-rest-core-proto-sync
runs-on: linux-amd64-cpu16
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to NVCR
uses: ./.github/actions/docker-auth
with:
username: ${{ secrets.NVCR_USERNAME }}
token: ${{ secrets.NVCR_TOKEN }}
- name: Run release-container service tests
env:
BUILD_CONTAINER: nvcr.io/0837451325059433/carbide-dev/build-container-x86_64:${{ needs.prepare.outputs.build_container_x86_64_version }}
CI_COMMIT_SHORT_SHA: ${{ needs.prepare.outputs.short_sha }}
VERSION: ${{ needs.prepare.outputs.version }}
run: |
set -euo pipefail
mkdir -p "${{ github.workspace }}/.sccache"
docker pull "${BUILD_CONTAINER}"
docker run --rm \
-v "${{ github.workspace }}:/carbide" \
-v "${{ github.workspace }}/.sccache:/sccache" \
-w /carbide \
-e CARGO_HOME=/carbide/cargo \
-e CARGO_INCREMENTAL=0 \
-e CARGO_MAKE_SKIP_CODECOV=true \
-e DATABASE_URL='postgresql://root@%2Fvar%2Frun%2Fpostgresql/root' \
-e SCCACHE_DIR=/sccache \
-e RUSTC_WRAPPER=sccache \
-e CARGO_PROFILE_RELEASE_DEBUG=true \
-e CI_COMMIT_SHORT_SHA="${CI_COMMIT_SHORT_SHA}" \
-e VERSION="${VERSION}" \
-e CONTAINER_REPO_ROOT=/carbide \
"${BUILD_CONTAINER}" \
bash -c '
set -euo pipefail
git config --global --add safe.directory /carbide
/etc/init.d/postgresql start
sudo -u postgres psql -c "ALTER USER root WITH SUPERUSER;"
createdb root
cargo make test-release-container-services
'
- name: Final repository clean check
run: bash scripts/check-repo-clean.sh "release-container service tests"
# ============================================================================
# BUILD STAGE - Forge CLI (Multi-arch)
# ============================================================================
build-forge-cli-x86_64:
needs:
- prepare
- build-artifacts-container-x86_64
if: ${{ always() && github.event_name != 'schedule' && needs.prepare.result == 'success' }}
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.release-forge-cli
image_name: nvcr.io/0837451325059433/carbide-dev/forge-admin-cli-x86_64
image_tag: ${{ needs.prepare.outputs.version }}
build_args: '{"CI_COMMIT_SHORT_SHA":"${{ needs.prepare.outputs.short_sha }}","CONTAINER_BUILD":"nvcr.io/0837451325059433/carbide-dev/build-artifacts-container-x86_64:${{ needs.prepare.outputs.build_artifacts_container_x86_64_version }}"}'
platforms: linux/amd64
runner: linux-amd64-cpu4
push: ${{ !contains(github.ref, 'pull-request/') }}
load: true
scan: true
secrets: inherit
build-forge-cli-aarch64:
needs:
- prepare
- build-artifacts-container-aarch64
if: ${{ always() && github.event_name != 'schedule' && needs.prepare.result == 'success' }}
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.release-forge-cli
image_name: nvcr.io/0837451325059433/carbide-dev/forge-admin-cli-aarch64
image_tag: ${{ needs.prepare.outputs.version }}
build_args: '{"CI_COMMIT_SHORT_SHA":"${{ needs.prepare.outputs.short_sha }}","CONTAINER_BUILD":"nvcr.io/0837451325059433/carbide-dev/build-artifacts-container-aarch64:${{ needs.prepare.outputs.build_artifacts_container_aarch64_version }}"}'
platforms: linux/arm64
runner: linux-arm64-cpu4
push: ${{ !contains(github.ref, 'pull-request/') }}
load: true
secrets: inherit
merge-manifests-forge-cli:
needs:
- prepare
- build-forge-cli-x86_64
- build-forge-cli-aarch64
if: ${{ !cancelled() && github.event_name != 'schedule' && !contains(github.ref, 'pull-request/') && needs.build-forge-cli-x86_64.result == 'success' && needs.build-forge-cli-aarch64.result == 'success' }}
runs-on: linux-amd64-cpu4
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to NVCR
uses: ./.github/actions/docker-auth
with:
username: ${{ secrets.NVCR_USERNAME }}
token: ${{ secrets.NVCR_TOKEN }}
- name: Create and push multi-arch manifest
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08
with:
max_attempts: 3
timeout_minutes: 10
retry_wait_seconds: 20
command: |
docker buildx imagetools create -t \
nvcr.io/0837451325059433/carbide-dev/forge-admin-cli:${{ needs.prepare.outputs.version }} \
nvcr.io/0837451325059433/carbide-dev/forge-admin-cli-x86_64:${{ needs.prepare.outputs.version }} \
nvcr.io/0837451325059433/carbide-dev/forge-admin-cli-aarch64:${{ needs.prepare.outputs.version }}
docker buildx imagetools create -t \
nvcr.io/0837451325059433/carbide-dev/forge-admin-cli:latest \
nvcr.io/0837451325059433/carbide-dev/forge-admin-cli-x86_64:${{ needs.prepare.outputs.version }} \
nvcr.io/0837451325059433/carbide-dev/forge-admin-cli-aarch64:${{ needs.prepare.outputs.version }}
# ============================================================================
# BUILD STAGE - Boot Artifacts
# ============================================================================
build-boot-artifacts-x86:
needs:
- prepare
- build-artifacts-container-x86_64
if: ${{ !cancelled() && github.event_name != 'schedule' && needs.prepare.result == 'success' && contains('success,skipped', needs.build-artifacts-container-x86_64.result) }}
uses: ./.github/workflows/build-boot-artifacts.yml
with:
arch: x86_64
build_type: boot
cargo_make_task: build-boot-artifacts-x86-host-ci
build_container: nvcr.io/0837451325059433/carbide-dev/build-artifacts-container-x86_64:${{ needs.prepare.outputs.build_artifacts_container_x86_64_version }}
runner: linux-amd64-cpu4
version: ${{ needs.prepare.outputs.version }}
use_container: true
inject_extras: true
extras_container: ${{ needs.prepare.outputs.extras_container_ref }}
secrets: inherit
build-boot-artifacts-bfb:
needs:
- prepare
- build-artifacts-container-aarch64
if: ${{ !cancelled() && github.event_name != 'schedule' && needs.prepare.result == 'success' && contains('success,skipped', needs.build-artifacts-container-aarch64.result) }}
uses: ./.github/workflows/build-boot-artifacts.yml
with:
arch: aarch64
build_type: boot
cargo_make_task: build-boot-artifacts-bfb-ci
build_container: nvcr.io/0837451325059433/carbide-dev/build-artifacts-container-aarch64:${{ needs.prepare.outputs.build_artifacts_container_aarch64_version }}
runner: linux-arm64-cpu16
version: ${{ needs.prepare.outputs.version }}
use_container: true
inject_extras: true
extras_container: ${{ needs.prepare.outputs.extras_container_ref }}
secrets: inherit
# ============================================================================
# BUILD STAGE - Ephemeral Images
# ============================================================================
# These builds create bootable ephemeral images (scout.efi, qcow-imager.efi)
# using mkosi. They run on standard Ubuntu runners with mkosi installed.
build-boot-artifacts-ephemeral-image-x86-host:
needs:
- prepare
- build-boot-artifacts-x86
if: ${{ !cancelled() && github.event_name != 'schedule' && needs.prepare.result == 'success' && needs.build-boot-artifacts-x86.result == 'success' }}
uses: ./.github/workflows/build-boot-artifacts.yml
with:
arch: x86_64
build_type: ephemeral
cargo_make_task: create-ephemeral-image-x86-host-ci
version: ${{ needs.prepare.outputs.version }}
runner: linux-amd64-cpu8
use_container: false
sa_enablement: true
inject_extras: true
extras_container: ${{ needs.prepare.outputs.extras_container_ref }}
secrets: inherit
build-boot-artifacts-ephemeral-image-arm-host:
needs:
- prepare
- build-boot-artifacts-bfb
# Run only if boot artifacts succeeded (we need those artifacts); skip if cancelled
if: ${{ !cancelled() && github.event_name != 'schedule' && needs.prepare.result == 'success' && needs.build-boot-artifacts-bfb.result == 'success' }}
uses: ./.github/workflows/build-boot-artifacts.yml
with:
arch: aarch64
build_type: ephemeral
cargo_make_task: create-ephemeral-image-arm-host-ci
version: ${{ needs.prepare.outputs.version }}
runner: linux-arm64-cpu16
use_container: false
sa_enablement: true
inject_extras: true
extras_container: ${{ needs.prepare.outputs.extras_container_ref }}
secrets: inherit
# ============================================================================
# BUILD STAGE - Release Artifacts
# ============================================================================
build-release-artifacts-x86-host:
needs:
- prepare
- build-boot-artifacts-x86
- build-boot-artifacts-ephemeral-image-x86-host
# Run only if both boot and ephemeral jobs succeeded (we need those artifacts); skip if failed/cancelled
if: ${{ !cancelled() && github.event_name != 'schedule' && needs.prepare.result == 'success' && needs.build-boot-artifacts-x86.result == 'success' && needs.build-boot-artifacts-ephemeral-image-x86-host.result == 'success' }}
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.release-artifacts-x86_64
image_name: nvcr.io/0837451325059433/carbide-dev/boot-artifacts-x86_64
image_tag: ${{ needs.prepare.outputs.version }}
# Multi-arch on push so this x86_64 boot-artifacts carrier can run as an
# init container on both amd64 and arm64 control-plane nodes; the payload
# it ships is unchanged (x86_64 boot blobs). The Dockerfile has no RUN
# steps (FROM alpine + COPY only), so no QEMU is needed. Single-arch on PR
# so the image loads to the daemon for the Grype scan.
platforms: ${{ !contains(github.ref, 'pull-request/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
runner: linux-amd64-cpu4
push: ${{ !contains(github.ref, 'pull-request/') }}
load: true
scan: true
download_artifacts: true # Download boot and ephemeral artifacts for packaging
build_args: |
{
"VERSION": "${{ needs.prepare.outputs.version }}",
"CI_COMMIT_SHORT_SHA": "${{ needs.prepare.outputs.short_sha }}",
"CONTAINER_RUNTIME_X86_64": "alpine:latest"
}
secrets: inherit
build-release-artifacts-arm-host:
needs:
- prepare
- build-boot-artifacts-bfb
- build-boot-artifacts-ephemeral-image-arm-host
# Run only if both boot and ephemeral jobs succeeded (we need those artifacts); skip if failed/cancelled
if: ${{ !cancelled() && github.event_name != 'schedule' && needs.prepare.result == 'success' && needs.build-boot-artifacts-bfb.result == 'success' && needs.build-boot-artifacts-ephemeral-image-arm-host.result == 'success' }}
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.release-artifacts-aarch64
image_name: nvcr.io/0837451325059433/carbide-dev/boot-artifacts-aarch64
image_tag: ${{ needs.prepare.outputs.version }}
# Container arch is independent of the payload: this carrier always ships
# the aarch64 boot blobs as files. Build it multi-arch on push so it can
# run as an init container on both amd64 and arm64 control-plane nodes. The
# Dockerfile has no RUN steps (FROM alpine + COPY only), so no QEMU is
# needed. Single-arch on PR so the image loads to the daemon for Grype.
platforms: ${{ !contains(github.ref, 'pull-request/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
runner: linux-amd64-cpu4
push: ${{ !contains(github.ref, 'pull-request/') }}
load: true
scan: true
download_artifacts: true # Download boot and ephemeral artifacts for packaging
build_args: |
{
"VERSION": "${{ needs.prepare.outputs.version }}",
"CI_COMMIT_SHORT_SHA": "${{ needs.prepare.outputs.short_sha }}",
"CONTAINER_RUNTIME_AARCH64": "alpine:latest"
}
secrets: inherit
# ============================================================================
# SECURITY STAGE
# ============================================================================
security-secret-scan:
name: Secret Scan with TruffleHog
needs: prepare
runs-on: linux-amd64-cpu4
timeout-minutes: 30
permissions:
actions: read
contents: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history for secret scanning
- name: Run TruffleHog Scan
uses: NVIDIA/dsx-github-actions/.github/actions/trufflehog-scan@9a9ce3a7770a8b53d2726afa920be3276bc3ddd7
with:
extra-args: '--results=verified,unknown --only-verified'
post-pr-comment: 'false'
fail-on-findings: 'true'
security-codeql-scan:
name: CodeQL Security Analysis
needs: prepare
runs-on: linux-amd64-cpu4
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write
packages: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run CodeQL Scan
uses: NVIDIA/dsx-github-actions/.github/actions/codeql-scan@20dc10dda4fa9f8f0380a47cd9a7800d3da3dcf3
with:
languages: 'rust'
build-mode: 'none'
category: '/language:rust'
upload-sarif: 'false' # Disable upload until GHAS is enabled, such as the repo be public
post-pr-comment: 'false'
fail-on-findings: 'true' # Enforce quality gate
fail-on-severity: 'error' # Only fail on critical/high severity issues
# ============================================================================
# BUILD STAGE - Machine Validation
# ============================================================================
build-release-machine-validation-runner:
needs:
- prepare
- build-runtime-container-x86_64
if: ${{ !cancelled() && github.event_name != 'schedule' && needs.prepare.result == 'success' && contains('success,skipped', needs.build-runtime-container-x86_64.result) }}
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.machine-validation-runner
image_name: nvcr.io/0837451325059433/carbide-dev/machine-validation-runner
image_tag: ${{ needs.prepare.outputs.version }}
build_args: '{"CI_COMMIT_SHORT_SHA":"${{ needs.prepare.outputs.short_sha }}","CONTAINER_RUNTIME_X86_64":"nvcr.io/0837451325059433/carbide-dev/runtime-container-x86_64:${{ needs.prepare.outputs.runtime_container_x86_64_version }}"}'
platforms: linux/amd64
runner: linux-amd64-cpu4
push: ${{ !contains(github.ref, 'pull-request/') }}
load: true # load to daemon so the Grype scan can read it on PR builds
scan: true
secrets: inherit
build-release-machine-validation-artifacts-x86-host:
needs:
- prepare
- build-release-machine-validation-runner
if: ${{ !cancelled() && github.event_name != 'schedule' && needs.prepare.result == 'success' && needs.build-release-machine-validation-runner.result == 'success' }}
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.machine-validation-config
image_name: nvcr.io/0837451325059433/carbide-dev/machine_validation
image_tag: ${{ needs.prepare.outputs.version }}
build_args: '{"CI_COMMIT_SHORT_SHA":"${{ needs.prepare.outputs.short_sha }}","CONTAINER_RUNTIME_X86_64":"nvcr.io/0837451325059433/carbide-dev/runtime-container-x86_64:${{ needs.prepare.outputs.runtime_container_x86_64_version }}"}'
platforms: linux/amd64
runner: linux-amd64-cpu4
push: ${{ !contains(github.ref, 'pull-request/') }}
load: true # load to daemon so the Grype scan can read it on PR builds
scan: true
secrets: inherit
# arm64 container build of the machine-validation config carrier, so it can run
# as an init container on arm64 control-plane nodes. FROM the aarch64 runtime
# base; pushed as machine_validation-aarch64 and merged into the bare
# machine_validation tag below. (The bundled validation runner payload staying
# arm64-capable is tracked separately — this only makes the carrier runnable on
# arm64 nodes.)
build-release-machine-validation-artifacts-arm-host:
needs:
- prepare
- build-runtime-container-aarch64
if: ${{ !cancelled() && github.event_name != 'schedule' && needs.prepare.result == 'success' && contains('success,skipped', needs.build-runtime-container-aarch64.result) }}
uses: ./.github/workflows/docker-build.yml
with:
dockerfile_path: dev/docker/Dockerfile.machine-validation-config-aarch64
image_name: nvcr.io/0837451325059433/carbide-dev/machine_validation-aarch64
image_tag: ${{ needs.prepare.outputs.version }}
build_args: '{"CI_COMMIT_SHORT_SHA":"${{ needs.prepare.outputs.short_sha }}","CONTAINER_RUNTIME_AARCH64":"nvcr.io/0837451325059433/carbide-dev/runtime-container-aarch64:${{ needs.prepare.outputs.runtime_container_aarch64_version }}"}'
platforms: linux/arm64
runner: linux-arm64-cpu4
push: ${{ !contains(github.ref, 'pull-request/') }}
load: true # load to daemon so the Grype scan can read it on PR builds
scan: true
secrets: inherit
# Combine machine_validation (amd64) and machine_validation-aarch64 into a
# single multi-arch manifest at the bare machine_validation tag. Sources are
# referenced by digest so re-runs are idempotent. Push refs only.
merge-manifests-machine-validation:
needs:
- prepare
- build-release-machine-validation-artifacts-x86-host
- build-release-machine-validation-artifacts-arm-host
if: ${{ !cancelled() && github.event_name != 'schedule' && !contains(github.ref, 'pull-request/') && needs.build-release-machine-validation-artifacts-x86-host.result == 'success' && needs.build-release-machine-validation-artifacts-arm-host.result == 'success' }}
runs-on: linux-amd64-cpu4
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to NVCR