Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 74cc4a5

Browse files
committedJul 20, 2022
pkg: use GITCOMMIT
Signed-off-by: CrazyMax <[email protected]>
1 parent d5fb29d commit 74cc4a5

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed
 

‎common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ BUILDTIME=$(shell date -u -d "@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" --rfc-3339 n
1616
CHOWN:=docker run --rm -v $(CURDIR):/v -w /v alpine chown
1717
DEFAULT_PRODUCT_LICENSE:=Community Engine
1818
PACKAGER_NAME?=
19-
DOCKER_GITCOMMIT:=abcdefg
19+
GITCOMMIT:=abcdefg
2020
GO_VERSION:=1.18.3
2121
PLATFORM=Docker Engine - Community
2222
SHELL:=/bin/bash

‎deb/common/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ override_dh_builddeb:
1010

1111
override_dh_auto_build:
1212
# Build the daemon and dependencies
13-
cd /go/src/github.com/docker/docker && DOCKER_GITCOMMIT=$(ENGINE_GITCOMMIT) PRODUCT=docker ./hack/make.sh dynbinary
13+
cd /go/src/github.com/docker/docker && GITCOMMIT=$(ENGINE_GITCOMMIT) PRODUCT=docker ./hack/make.sh dynbinary
1414
cd /go/src/github.com/docker/docker && TMP_GOPATH="/go" hack/dockerfile/install/install.sh tini
1515
cd /go/src/github.com/docker/docker && TMP_GOPATH="/go" hack/dockerfile/install/install.sh rootlesskit dynamic
1616
# Build the CLI

‎rpm/SPECS/docker-ce-rootless-extras.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Either VPNKit or slirp4netns (>= 0.4.0) needs to be installed separately.
3636

3737
%build
3838

39-
export DOCKER_GITCOMMIT=%{_gitcommit_engine}
39+
export GITCOMMIT=%{_gitcommit_engine}
4040
mkdir -p /go/src/github.com/docker
4141
ln -snf ${RPM_BUILD_DIR}/src/engine /go/src/github.com/docker/docker
4242
TMP_GOPATH="/go" ${RPM_BUILD_DIR}/src/engine/hack/dockerfile/install/install.sh rootlesskit dynamic

‎rpm/SPECS/docker-ce.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ depending on a particular stack or provider.
8080

8181
%build
8282

83-
export DOCKER_GITCOMMIT=%{_gitcommit_engine}
83+
export GITCOMMIT=%{_gitcommit_engine}
8484
mkdir -p /go/src/github.com/docker
8585
ln -snf ${RPM_BUILD_DIR}/src/engine /go/src/github.com/docker/docker
8686

‎rpm/gen-rpm-ver

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ rpmRelease=1
7373
tilde='~'
7474
rpmVersion="${rpmVersion//-/$tilde}"
7575

76-
DOCKER_GITCOMMIT=$($GIT_COMMAND rev-parse --short HEAD)
76+
GITCOMMIT=$($GIT_COMMAND rev-parse --short HEAD)
7777
if [ -n "$($GIT_COMMAND status --porcelain --untracked-files=no)" ]; then
78-
DOCKER_GITCOMMIT="$DOCKER_GITCOMMIT-unsupported"
78+
GITCOMMIT="$GITCOMMIT-unsupported"
7979
fi
8080

8181
# if we have a "-dev" suffix or have change in Git, this is a nightly build, and
@@ -112,4 +112,4 @@ fi
112112

113113
# Replace any remaining dashes with periods
114114
rpmVersion="${rpmVersion//-/.}"
115-
echo "$rpmVersion $rpmRelease $DOCKER_GITCOMMIT $origVersion"
115+
echo "$rpmVersion $rpmRelease $GITCOMMIT $origVersion"

0 commit comments

Comments
 (0)
Please sign in to comment.