Skip to content

Commit e68fb02

Browse files
committed
using cache-to and cache-from
1 parent 7f576d3 commit e68fb02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ buildah-build: check-builder load-version-json ## Build and push image (multi-ar
9696
for arch in amd64; do \
9797
ARCH_TAG=$$FINAL_TAG-$$arch; \
9898
echo "📦 Building for architecture: $$arch"; \
99-
buildah build --arch=$$arch --os=linux --layers -t $$ARCH_TAG . || exit 1; \
99+
buildah build --arch=$$arch --os=linux --layers --cache-from=$(IMAGE_TAG_BASE) --cache-to=$(IMAGE_TAG_BASE) -t $(IMG)-$$arch . || exit 1; \
100100
echo "🚀 Pushing image: $$ARCH_TAG"; \
101101
buildah push $$ARCH_TAG docker://$$ARCH_TAG || exit 1; \
102102
done; \

0 commit comments

Comments
 (0)