Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit b7d6e7a

Browse files
committed
Add PLATFORM to deb and rpm build
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com> Upstream-commit: 119bb51 Component: packaging
1 parent aaffe33 commit b7d6e7a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

components/packaging/deb/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ RUN=docker run --rm -i \
3232
-e DEB_VERSION=$(word 1, $(DEB_VERSION)) \
3333
-e VERSION=$(word 2, $(DEB_VERSION)) \
3434
-e DOCKER_GITCOMMIT=$(GITCOMMIT) \
35+
-e PLATFORM \
3536
-v $(CURDIR)/debbuild/$@:/build \
3637
$(RUN_FLAGS) \
3738
debbuild-$@/$(ARCH)

components/packaging/rpm/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ BUILD?=docker build \
2828

2929
SPEC_FILES?=docker-ce.spec docker-ce-cli.spec
3030
SPECS?=$(addprefix SPECS/, $(SPEC_FILES))
31-
RPMBUILD=docker run --privileged --rm -i\
31+
RPMBUILD=docker run --privileged --rm -i \
32+
-e PLATFORM \
3233
-v $(CURDIR)/rpmbuild/SOURCES:/root/rpmbuild/SOURCES \
3334
-v $(CURDIR)/rpmbuild/RPMS:/root/rpmbuild/RPMS \
3435
-v $(CURDIR)/rpmbuild/SRPMS:/root/rpmbuild/SRPMS

0 commit comments

Comments
 (0)