Skip to content

Commit 23b9cf6

Browse files
committed
needs oci type to have zstd. otherwise it needs direct push
1 parent a43239e commit 23b9cf6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ docker buildx bake --allow=fs.read=.. \
195195
$(if $(findstring $(comma),$(DOCKER_TARGET_PLATFORMS)),,\
196196
$(if $(local-dest),\
197197
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
198-
--set $(service).output="type=docker$(comma)compression=zstd$(comma)compression-level=9$(comma)dest=$(local-dest)/$(service).tar") \
198+
--set $(service).output="type=oci$(comma)\
199+
compression=zstd$(comma)compression-level=9$(comma)force-compression=true$(comma)dest=$(local-dest)/$(service)zstd.tar") \
199200
,--load\
200201
)\
201202
)\
@@ -204,7 +205,8 @@ docker buildx bake --allow=fs.read=.. \
204205
--set $(service).tags=$(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG) \
205206
) \
206207
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
207-
--set $(service).output="type=registry$(comma)compression=zstd$(comma)compression-level=9$(comma)push=true" \
208+
--set $(service).output="type=registry$(comma)\
209+
compression=zstd$(comma)compression-level=1$(comma)force-compression=true$$(comma)push=true" \
208210
)\
209211
,) \
210212
$(if $(push),--push,) \

0 commit comments

Comments
 (0)