Skip to content

Commit

Permalink
Use cache for builders stages
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Jan 13, 2021
1 parent 2c6045a commit e8db292
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ build-image:
build-release-image:
DOCKER_BUILDKIT=1 docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from $(REPO_URL):$(BUILD_GO_CACHE_TAG) \
--target go-builder \
--tag $(IMAGE_NAME):$(BUILD_GO_CACHE_TAG) \
.

DOCKER_BUILDKIT=1 docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from $(REPO_URL):$(BUILD_RUST_CACHE_TAG) \
--target rust-builder \
--tag $(IMAGE_NAME):$(BUILD_RUST_CACHE_TAG) \
.
Expand Down

0 comments on commit e8db292

Please sign in to comment.