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