Skip to content

Commit cb6a301

Browse files
committed
only overwrite docker registry and tag on push
1 parent 19b35fc commit cb6a301

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ docker buildx bake --allow=fs.read=.. \
172172
,--load\
173173
)\
174174
)\
175-
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
176-
--set $(service).tags=$(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG) \
177-
) \
178175
$(if $(push),\
176+
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
177+
--set $(service).tags=$(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG) \
178+
) \
179179
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
180180
--set $(service).output="type=registry$(comma)push=true" \
181181
)\

0 commit comments

Comments
 (0)