Skip to content

Commit

Permalink
Merge branch 'match-toolkit-tag' into 'master'
Browse files Browse the repository at this point in the history
Ensure that package tags for components match

See merge request nvidia/container-toolkit/container-toolkit!76
  • Loading branch information
Evan Lezar committed Nov 16, 2021
2 parents 81f9caa + bc1f6e0 commit d2575ab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/get-component-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ if [[ "${libnvidia_container_version_tag}" != "${nvidia_container_toolkit_versio
>&2 echo "WARNING: The libnvidia-container and nvidia-container-toolkit versions do not match"
fi
echo "NVIDIA_CONTAINER_RUNTIME_VERSION=${nvidia_container_runtime_version}"
echo "NVIDIA_CONTAINER_RUNTIME_TAG=${nvidia_container_runtime_tag}"
echo "NVIDIA_DOCKER_VERSION=${nvidia_docker_version}"
echo "NVIDIA_DOCKER_TAG=${nvidia_docker_tag}"
10 changes: 10 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ eval $(${SCRIPTS_DIR}/get-component-versions.sh)
export NVIDIA_CONTAINER_TOOLKIT_VERSION
export NVIDIA_CONTAINER_TOOLKIT_TAG

if [[ "${NVIDIA_CONTAINER_TOOLKIT_TAG}" != "${NVIDIA_CONTAINER_RUNTIME_TAG}" ]]; then
echo "ERROR: The nvidia-container-runtime and nvidia-container-toolkit version tags do not match"
exit 1
fi

if [[ "${NVIDIA_CONTAINER_TOOLKIT_TAG}" != "${NVIDIA_DOCKER_TAG}" ]]; then
echo "ERROR: The nvidia-docker and nvidia-container-toolkit version tags do not match"
exit 1
fi

for target in ${targets[@]}; do
${SCRIPTS_DIR}/build-all-components.sh ${target}
done
2 changes: 1 addition & 1 deletion third_party/nvidia-container-runtime
Submodule nvidia-container-runtime updated from 037ec4 to ba4815
2 changes: 1 addition & 1 deletion third_party/nvidia-docker
Submodule nvidia-docker updated from 9de312 to 34934c

0 comments on commit d2575ab

Please sign in to comment.