Skip to content

Commit

Permalink
Merge pull request #67 from shivakunv/github_imagepath
Browse files Browse the repository at this point in the history
change gitlab path to ghcr.io image path
  • Loading branch information
shivakunv authored Aug 2, 2024
2 parents 3821c55 + 1a99eda commit 01db23f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .nvidia-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions scripts/precompiled.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01db23f

Please sign in to comment.