Skip to content

Commit

Permalink
only overwrite docker registry and tag on push
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Jan 7, 2025
1 parent e75464e commit 1f7b717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ docker buildx bake --allow=fs.read=.. \
,--load\
)\
)\
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
--set $(service).tags=$(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG) \
) \
$(if $(push),\
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
--set $(service).tags=$(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG) \
) \
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
--set $(service).output="type=registry$(comma)push=true" \
)\
Expand Down

0 comments on commit 1f7b717

Please sign in to comment.