mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Skip components for patch releases
This change ensures that the nvidia-docker2 and nvidia-container-runtime components are not build and distributed for patch releases. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -45,17 +45,21 @@ function skip-for-release-candidate() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
# We allow all other packages for non-rc versions.
|
||||
if [[ "${VERSION/rc./}" == "${VERSION}" ]]; then
|
||||
return 1
|
||||
local is_non_patch_full_release=1
|
||||
# We allow all other packages for non-rc and non-patch release versions.
|
||||
if [[ "${VERSION/rc./}" != "${VERSION}" ]]; then
|
||||
is_non_patch_full_release=0
|
||||
fi
|
||||
if [[ "${VERSION%.0}" == "${VERSION}" ]]; then
|
||||
is_non_patch_full_release=0
|
||||
fi
|
||||
|
||||
local package_name=$1
|
||||
if [[ "${package_name/"nvidia-docker2"/}" != "${package_name}" ]]; then
|
||||
return 0
|
||||
return ${is_non_patch_full_release}
|
||||
fi
|
||||
if [[ "${package_name/"nvidia-container-runtime"/}" != "${package_name}" ]]; then
|
||||
return 0
|
||||
return ${is_non_patch_full_release}
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user