From c5b0278c582714b9f6d21585a8848f6f7cbcc9c7 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 23 Aug 2022 21:15:41 +0200 Subject: [PATCH] Ensure CLI versions are set correctly for RPM packages Signed-off-by: Evan Lezar --- docker/Dockerfile.opensuse-leap | 10 +++++----- docker/Dockerfile.rpm-yum | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docker/Dockerfile.opensuse-leap b/docker/Dockerfile.opensuse-leap index 5d1d3acb..09402a89 100644 --- a/docker/Dockerfile.opensuse-leap +++ b/docker/Dockerfile.opensuse-leap @@ -28,9 +28,9 @@ ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH ARG PKG_NAME ARG PKG_VERS ARG PKG_REV - -ENV VERSION $PKG_VERS -ENV RELEASE $PKG_REV +ENV PKG_NAME ${PKG_NAME} +ENV PKG_VERS ${PKG_VERS} +ENV PKG_REV ${PKG_REV} # output directory ENV DIST_DIR=/tmp/nvidia-container-toolkit-$PKG_VERS/SOURCES @@ -65,8 +65,8 @@ CMD arch=$(uname -m) && \ -D "_topdir $PWD" \ -D "release_date $(date +'%a %b %d %Y')" \ -D "git_commit ${GIT_COMMIT}" \ - -D "version $VERSION" \ + -D "version ${PKG_VERS}" \ -D "libnvidia_container_tools_version ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}" \ - -D "release $RELEASE" \ + -D "release ${PKG_REV}" \ SPECS/nvidia-container-toolkit.spec && \ mv RPMS/$arch/*.rpm /dist diff --git a/docker/Dockerfile.rpm-yum b/docker/Dockerfile.rpm-yum index b4c2ed2f..6e5d8456 100644 --- a/docker/Dockerfile.rpm-yum +++ b/docker/Dockerfile.rpm-yum @@ -46,9 +46,9 @@ ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH ARG PKG_NAME ARG PKG_VERS ARG PKG_REV - -ENV VERSION $PKG_VERS -ENV RELEASE $PKG_REV +ENV PKG_NAME ${PKG_NAME} +ENV PKG_VERS ${PKG_VERS} +ENV PKG_REV ${PKG_REV} # output directory ENV DIST_DIR=/tmp/nvidia-container-toolkit-$PKG_VERS/SOURCES @@ -83,8 +83,8 @@ CMD arch=$(uname -m) && \ -D "_topdir $PWD" \ -D "release_date $(date +'%a %b %d %Y')" \ -D "git_commit ${GIT_COMMIT}" \ - -D "version $VERSION" \ + -D "version ${PKG_VERS}" \ -D "libnvidia_container_tools_version ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}" \ - -D "release $RELEASE" \ + -D "release ${PKG_REV}" \ SPECS/nvidia-container-toolkit.spec && \ mv RPMS/$arch/*.rpm /dist