diff --git a/common.mk b/common.mk index 42c91049ce..4377fb3e56 100644 --- a/common.mk +++ b/common.mk @@ -16,7 +16,7 @@ BUILDTIME=$(shell date -u -d "@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" --rfc-3339 n CHOWN:=docker run --rm -v $(CURDIR):/v -w /v alpine chown DEFAULT_PRODUCT_LICENSE:=Community Engine PACKAGER_NAME?= -DOCKER_GITCOMMIT:=abcdefg +GITCOMMIT:=abcdefg GO_VERSION:=1.18.4 PLATFORM=Docker Engine - Community SHELL:=/bin/bash diff --git a/deb/common/rules b/deb/common/rules index 90e7e02e74..cfccdd0267 100755 --- a/deb/common/rules +++ b/deb/common/rules @@ -10,7 +10,7 @@ override_dh_builddeb: override_dh_auto_build: # Build the daemon and dependencies - cd /go/src/github.com/docker/docker && DOCKER_GITCOMMIT=$(ENGINE_GITCOMMIT) PRODUCT=docker ./hack/make.sh dynbinary + cd /go/src/github.com/docker/docker && GITCOMMIT=$(ENGINE_GITCOMMIT) PRODUCT=docker ./hack/make.sh dynbinary cd /go/src/github.com/docker/docker && TMP_GOPATH="/go" hack/dockerfile/install/install.sh tini cd /go/src/github.com/docker/docker && TMP_GOPATH="/go" hack/dockerfile/install/install.sh rootlesskit dynamic # Build the CLI diff --git a/rpm/SPECS/docker-ce-rootless-extras.spec b/rpm/SPECS/docker-ce-rootless-extras.spec index b29c66745a..124ca55c31 100644 --- a/rpm/SPECS/docker-ce-rootless-extras.spec +++ b/rpm/SPECS/docker-ce-rootless-extras.spec @@ -36,7 +36,7 @@ Either VPNKit or slirp4netns (>= 0.4.0) needs to be installed separately. %build -export DOCKER_GITCOMMIT=%{_gitcommit_engine} +export GITCOMMIT=%{_gitcommit_engine} mkdir -p /go/src/github.com/docker ln -snf ${RPM_BUILD_DIR}/src/engine /go/src/github.com/docker/docker TMP_GOPATH="/go" ${RPM_BUILD_DIR}/src/engine/hack/dockerfile/install/install.sh rootlesskit dynamic diff --git a/rpm/SPECS/docker-ce.spec b/rpm/SPECS/docker-ce.spec index 3265631283..45128fd1a7 100644 --- a/rpm/SPECS/docker-ce.spec +++ b/rpm/SPECS/docker-ce.spec @@ -80,7 +80,7 @@ depending on a particular stack or provider. %build -export DOCKER_GITCOMMIT=%{_gitcommit_engine} +export GITCOMMIT=%{_gitcommit_engine} mkdir -p /go/src/github.com/docker ln -snf ${RPM_BUILD_DIR}/src/engine /go/src/github.com/docker/docker diff --git a/rpm/gen-rpm-ver b/rpm/gen-rpm-ver index 4c9d438085..99fe19edbd 100755 --- a/rpm/gen-rpm-ver +++ b/rpm/gen-rpm-ver @@ -73,9 +73,9 @@ rpmRelease=1 tilde='~' rpmVersion="${rpmVersion//-/$tilde}" -DOCKER_GITCOMMIT=$($GIT_COMMAND rev-parse --short HEAD) +GITCOMMIT=$($GIT_COMMAND rev-parse --short HEAD) if [ -n "$($GIT_COMMAND status --porcelain --untracked-files=no)" ]; then - DOCKER_GITCOMMIT="$DOCKER_GITCOMMIT-unsupported" + GITCOMMIT="$GITCOMMIT-unsupported" fi # if we have a "-dev" suffix or have change in Git, this is a nightly build, and @@ -112,4 +112,4 @@ fi # Replace any remaining dashes with periods rpmVersion="${rpmVersion//-/.}" -echo "$rpmVersion $rpmRelease $DOCKER_GITCOMMIT $origVersion" +echo "$rpmVersion $rpmRelease $GITCOMMIT $origVersion"