diff --git a/scripts/release.sh b/scripts/release.sh index e436d899..3341c7f0 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -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