Skip to content

Commit 698a176

Browse files
authored
Merge pull request #253 from NVIDIA/fix-internal-precompiled-ci-jobs
Fix internal precompiled ci jobs
2 parents 46c977c + 0721d4f commit 698a176

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.common-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ workflow:
5555
- if: $CI_PIPELINE_SOURCE != "schedule"
5656
when: manual
5757

58+
.precompiled-rules:
59+
# only execute precompiled jobs on scheduled pipelines
60+
rules:
61+
- if: $CI_PIPELINE_SOURCE != "schedule"
62+
when: never
63+
5864
trigger-pipeline:
5965
stage: trigger
6066
script:
@@ -312,6 +318,8 @@ release:staging-rhel8:
312318
# OUT_VERSION is overridden for external releases
313319
OUT_VERSION: "${CI_COMMIT_SHORT_SHA}"
314320
PRECOMPILED: "true"
321+
rules:
322+
- !reference [.precompiled-rules, rules]
315323
extends:
316324
- .release-generic
317325

.nvidia-ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ image-precompiled-ubuntu24.04:
9494
PRECOMPILED: "true"
9595
CVE_UPDATES: "curl libc6"
9696
rules:
97+
- !reference [.precompiled-rules, rules]
9798
- when: delayed
9899
start_in: 30 minutes
99100
extends:
@@ -118,6 +119,7 @@ image-precompiled-ubuntu22.04:
118119
PRECOMPILED: "true"
119120
CVE_UPDATES: "curl libc6"
120121
rules:
122+
- !reference [.precompiled-rules, rules]
121123
- when: delayed
122124
start_in: 30 minutes
123125
extends:
@@ -235,6 +237,7 @@ image-rhel8:
235237
- .scan-generic
236238
rules:
237239
- !reference [.scan-rules-common, rules]
240+
- !reference [.precompiled-rules, rules]
238241
- when: always
239242

240243
.scan-precompiled-ubuntu22.04:
@@ -247,6 +250,7 @@ image-rhel8:
247250
- .scan-generic
248251
rules:
249252
- !reference [.scan-rules-common, rules]
253+
- !reference [.precompiled-rules, rules]
250254
- when: always
251255

252256
# Define the scan targets
@@ -363,8 +367,7 @@ release:ngc-ubuntu24.04:
363367
# - .release-generic
364368
# - .release:ngc-variables
365369
# rules:
366-
# # Only run NGC release job on scheduled pipelines
367-
# - if: $CI_PIPELINE_SOURCE == "schedule"
370+
# - !reference [.precompiled-rules, rules]
368371

369372
release:ngc-precompiled-ubuntu22.04:
370373
variables:
@@ -376,8 +379,7 @@ release:ngc-precompiled-ubuntu22.04:
376379
- .release-generic
377380
- .release:ngc-variables
378381
rules:
379-
# Only run NGC release job on scheduled pipelines
380-
- if: $CI_PIPELINE_SOURCE == "schedule"
382+
- !reference [.precompiled-rules, rules]
381383

382384
release:ngc-rhcos4.12:
383385
extends:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ pull-signed_ubuntu20.04%: DRIVER_TAG = $(DRIVER_BRANCH)
9090

9191
pull-signed_ubuntu22.04%: DIST = ubuntu22.04
9292
pull-signed_ubuntu22.04%: DRIVER_TAG = $(DRIVER_BRANCH)
93-
pull-signed_ubuntu22.04%: IMAGE_TAG = $(if $(VERSION),$(VERSION)-)$(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
93+
pull-signed_ubuntu22.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
9494

9595
pull-signed_ubuntu24.04%: DIST = ubuntu24.04
9696
pull-signed_ubuntu24.04%: DRIVER_TAG = $(DRIVER_BRANCH)
97-
pull-signed_ubuntu24.04%: IMAGE_TAG = $(if $(VERSION),$(VERSION)-)$(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
97+
pull-signed_ubuntu24.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
9898

9999
PLATFORM ?= linux/amd64
100100
$(DRIVER_PULL_TARGETS): pull-%:

0 commit comments

Comments
 (0)