Skip to content

Commit e8db292

Browse files
committed
Use cache for builders stages
1 parent 2c6045a commit e8db292

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ build-image:
3636
build-release-image:
3737
DOCKER_BUILDKIT=1 docker build \
3838
--build-arg BUILDKIT_INLINE_CACHE=1 \
39+
--cache-from $(REPO_URL):$(BUILD_GO_CACHE_TAG) \
3940
--target go-builder \
4041
--tag $(IMAGE_NAME):$(BUILD_GO_CACHE_TAG) \
4142
.
4243

4344
DOCKER_BUILDKIT=1 docker build \
4445
--build-arg BUILDKIT_INLINE_CACHE=1 \
46+
--cache-from $(REPO_URL):$(BUILD_RUST_CACHE_TAG) \
4547
--target rust-builder \
4648
--tag $(IMAGE_NAME):$(BUILD_RUST_CACHE_TAG) \
4749
.

0 commit comments

Comments
 (0)