From 1a99eda53c5a7bf6f5775f95a34a381d639ef1d0 Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Tue, 30 Jul 2024 23:19:05 +0530 Subject: [PATCH] change gitlab path to ghcr.io image path Signed-off-by: shiva kumar --- .nvidia-ci.yml | 2 +- scripts/precompiled.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.nvidia-ci.yml b/.nvidia-ci.yml index 3c216704..0bfcb614 100644 --- a/.nvidia-ci.yml +++ b/.nvidia-ci.yml @@ -32,7 +32,7 @@ variables: RELEASE_DEVEL_BRANCH: "DISABLED" DEVEL_RELEASE_IMAGE_VERSION: "devel" # Define the public staging registry - STAGING_REGISTRY: registry.gitlab.com/nvidia/container-images/driver/staging + STAGING_REGISTRY: ghcr.io/nvidia STAGING_VERSION: "${CI_COMMIT_SHORT_SHA}" .image-pull-rules: diff --git a/scripts/precompiled.sh b/scripts/precompiled.sh index 07a078e0..9a7515ad 100755 --- a/scripts/precompiled.sh +++ b/scripts/precompiled.sh @@ -22,10 +22,10 @@ function sourceVersions(){ fi if command -v regctl; then - regctl image get-file registry.gitlab.com/nvidia/container-images/driver/staging/driver:base-${BASE_TARGET}-${KERNEL_FLAVOR}-${DRIVER_BRANCH} /var/kernel_version.txt kernel_version.txt + regctl image get-file ghcr.io/nvidia/driver:base-${BASE_TARGET}-${KERNEL_FLAVOR}-${DRIVER_BRANCH} /var/kernel_version.txt kernel_version.txt else trap "docker rm -f base-${BASE_TARGET}" EXIT - docker run --pull=always -d --name base-${BASE_TARGET}-${KERNEL_FLAVOR} registry.gitlab.com/nvidia/container-images/driver/staging/driver:base-${BASE_TARGET}-${KERNEL_FLAVOR}-${DRIVER_BRANCH} + docker run --pull=always -d --name base-${BASE_TARGET}-${KERNEL_FLAVOR} ghcr.io/nvidia/driver:base-${BASE_TARGET}-${KERNEL_FLAVOR}-${DRIVER_BRANCH} # try 3 times every 3 seconds to get the file, if success exit the loop for i in {1..3}; do docker cp base-${BASE_TARGET}-${KERNEL_FLAVOR}:/var/kernel_version.txt kernel_version.txt && break