Skip to content

Commit d7e9b7a

Browse files
authored
Merge pull request #421 from thaJeztah/enable_buildkit
Makefile: enable buildkit when building images
2 parents fc688cd + 863ec11 commit d7e9b7a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

deb/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ ifdef BUILD_IMAGE
1616
endif
1717

1818
COMMON_FILES=common
19-
BUILD?=docker build \
19+
BUILD?=DOCKER_BUILDKIT=1 \
20+
docker build \
2021
$(BUILD_IMAGE_FLAG) \
2122
--build-arg GO_IMAGE=$(GO_IMAGE) \
2223
--build-arg COMMON_FILES=$(COMMON_FILES) \

rpm/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ endif
1717
ifdef BUILD_IMAGE
1818
BUILD_IMAGE_FLAG=--build-arg $(BUILD_IMAGE)
1919
endif
20-
BUILD?=docker build \
20+
BUILD?=DOCKER_BUILDKIT=1 \
21+
docker build \
2122
$(BUILD_IMAGE_FLAG) \
2223
--build-arg GO_IMAGE=$(GO_IMAGE) \
2324
-t rpmbuild-$@/$(ARCH) \

0 commit comments

Comments
 (0)