Skip to content

Commit ff02efd

Browse files
committed
[RHEL9] support passing a RockyLinux base image
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
1 parent ddec3c5 commit ff02efd

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

.common-ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ trigger-pipeline:
131131
variables:
132132
DIST: rhel10
133133

134+
.dist-rocky9:
135+
variables:
136+
DIST: rocky9
137+
134138
.dist-fedora36:
135139
variables:
136140
DIST: fedora36
@@ -216,6 +220,14 @@ trigger-pipeline:
216220
rules:
217221
- if: $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_TAG == null
218222

223+
.release-rocky9:
224+
# Perform for each DRIVER_VERSION
225+
extends:
226+
- .release-generic
227+
- .driver-versions
228+
rules:
229+
- if: $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_TAG == null
230+
219231
.release-rhel10:
220232
# Perform for each DRIVER_VERSION
221233
extends:
@@ -280,6 +292,15 @@ trigger-pipeline:
280292
OUT_REGISTRY: "${NGC_REGISTRY}"
281293
OUT_IMAGE_NAME: "${NGC_STAGING_REGISTRY}/driver"
282294

295+
.release:staging-rocky9:
296+
extends:
297+
- .release-rocky9
298+
variables:
299+
OUT_REGISTRY_USER: "${NGC_REGISTRY_USER}"
300+
OUT_REGISTRY_TOKEN: "${NGC_REGISTRY_TOKEN}"
301+
OUT_REGISTRY: "${NGC_REGISTRY}"
302+
OUT_IMAGE_NAME: "${NGC_STAGING_REGISTRY}/driver"
303+
283304
# Define an external release step that pushes an image to an external repository.
284305
.release:external:
285306
extends:
@@ -355,6 +376,13 @@ release:staging-rhel9:
355376
# needs:
356377
# - image-rhel10
357378

379+
release:staging-rocky9:
380+
extends:
381+
- .release:staging
382+
- .dist-rocky9
383+
needs:
384+
- image-rocky9
385+
358386
.release:staging-precompiled:
359387
stage: release
360388
variables:

.github/workflows/image.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- rhel8
3939
- rhel9
4040
- rhel10
41+
- rocky9
4142
ispr:
4243
- ${{github.event_name == 'pull_request'}}
4344
exclude:

.nvidia-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ image-rhel9:
161161
# - .image-pull-rhel10
162162
# - .dist-rhel10
163163

164+
image-rocky9:
165+
extends:
166+
- .image-pull
167+
- .dist-rocky9
168+
164169
# The .scan step forms the base of the image scan operation performed before releasing
165170
# images.
166171
.scan-generic:
@@ -376,6 +381,22 @@ scan-rhel9-arm64:
376381
# needs:
377382
# - image-rhel10
378383

384+
scan-rocky9-amd64:
385+
extends:
386+
- .scan
387+
- .dist-rocky9
388+
- .platform-amd64
389+
needs:
390+
- image-rocky9
391+
392+
scan-rocky9-arm64:
393+
extends:
394+
- .scan
395+
- .dist-rocky9
396+
- .platform-arm64
397+
needs:
398+
- image-rocky9
399+
379400
.release:ngc-variables:
380401
variables:
381402
OUT_REGISTRY_USER: "${NGC_REGISTRY_USER}"
@@ -495,6 +516,11 @@ release:ngc-rhel9.8:
495516
variables:
496517
OUT_DIST: "rhel9.8"
497518

519+
release:ngc-rocky9:
520+
extends:
521+
- .release:ngc
522+
- .dist-rocky9
523+
498524
#release:ngc-rhel10.0:
499525
# extends:
500526
# - .release:ngc

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ $(DRIVER_BUILD_TARGETS):
177177

178178
build-rhcos%: SUBDIR = rhel9
179179

180+
build-rocky9: SUBDIR = rhel9
181+
build-rocky9: DOCKER_BUILD_ARGS = --build-arg BASE_IMAGE=nvcr.io/nvidia/cuda:13.1.1-base-rockylinux9
182+
180183
build-fedora%: SUBDIR = fedora
181184

182185
build-sles15%: SUBDIR = sle15

0 commit comments

Comments
 (0)