Skip to content

Commit 206edb1

Browse files
committed
added nspect jobs
1 parent aa5c84d commit 206edb1

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

.nvidia-ci.yml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,4 +589,51 @@ raise-publishing-merge-request:
589589
- if: $CI_COMMIT_TAG
590590
needs:
591591
- job: process-build-info-release
592-
artifacts: true
592+
artifacts: true
593+
594+
.update-nspect:
595+
stage: ngc-publish
596+
image:
597+
name: "${NSPECT_STREAM_IMAGE}"
598+
pull_policy: always
599+
variables:
600+
RELEASE_VERSION: "v1.0.0"
601+
PROJECT_NAME: "gpu-driver-container"
602+
REPO_URL: "https://github.com/NVIDIA/${PROJECT_NAME}.git"
603+
script:
604+
- |
605+
export NSPECT_CLIENT_ID="${NSPECT_TEST_ID}"
606+
export NSPECT_CLIENT_SECRET="${NSPECT_TEST_SECRET}"
607+
program-version --env stage add --nspect-id "${NSPECT_ID}" --version-name "${RELEASE_VERSION}" --release-date "2025-07-02" --max-attempts 10
608+
program-version-repos add --nspect-id "${NSPECT_ID}" --version-name "${RELEASE_VERSION}" --repos '{"sourcePointer": "${REPO_URL}", "componentName": "${PROJECT_NAME}"}' --max-attempts 10
609+
610+
while read -r line; do
611+
read -r source_version target_version <<< "$line"
612+
image="${NGC_STAGING_REGISTRY}/${PROJECT_NAME}:${source_version}"
613+
614+
echo "Adding container image to nSpect: ${image}"
615+
616+
program-version-container-images --env stage add --nspect-id "${NSPECT_ID}" --version-name "${RELEASE_VERSION}" --container-images "{\"imageUrl\": \"${image}\"}" --max-attempts 10
617+
done < "combined-build-info.txt"
618+
619+
update-nspect-staging:
620+
needs:
621+
- job: process-build-info-staging
622+
artifacts: true
623+
extends:
624+
- .update-nspect
625+
variables:
626+
NSPECT_TEST_ID: "${NSPECT_STAGING_CLIENT_ID}"
627+
NSPECT_TEST_SECRET: "${NSPECT_STAGING_CLIENT_SECRET}"
628+
629+
update-nspect-publishing:
630+
needs:
631+
- job: process-build-info-release
632+
artifacts: true
633+
extends:
634+
- .update-nspect
635+
rules:
636+
- if: $CI_COMMIT_TAG
637+
variables:
638+
NSPECT_TEST_ID: "${NSPECT_PUBLISHING_CLIENT_ID}"
639+
NSPECT_TEST_SECRET: "${NSPECT_PUBLISHING_CLIENT_SECRET}"

0 commit comments

Comments
 (0)