From bc1f6e05a0f6bd32a99b07fd356df243f8921f9d Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 16 Nov 2021 09:53:32 +0100 Subject: [PATCH] Check for matching tags in release script Signed-off-by: Evan Lezar --- scripts/release.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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