Skip to content

Commit

Permalink
build(make): minor syntax updates (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
peakji authored Mar 25, 2023
1 parent edc3444 commit 5d05dd5
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 @@ -44,15 +44,15 @@ clean:

.PHONY: docker-%
docker-%: build-%
@docker build --platform=$(subst -,/,$*) --tag $(DOCKER_HUB_IMAGE)-$* .
@docker build --platform $(subst -,/,$*) --tag $(DOCKER_HUB_IMAGE)-$* .

.PHONY: docker-hub
docker-hub: $(foreach t,$(subst $(comma), ,$(TARGET_CONTAINER_PLATFORMS)),build-$(subst /,-,$(t)))
@docker buildx build --push --platform=$(TARGET_CONTAINER_PLATFORMS) --tag $(DOCKER_HUB_IMAGE) .
@docker buildx build --push --platform $(TARGET_CONTAINER_PLATFORMS) --tag $(DOCKER_HUB_IMAGE) .

.PHONY: github-packages
github-packages: $(foreach t,$(subst $(comma), ,$(TARGET_CONTAINER_PLATFORMS)),build-$(subst /,-,$(t)))
@docker buildx build --push --platform=$(TARGET_CONTAINER_PLATFORMS) --tag $(GITHUB_PACKAGES_IMAGE) .
@docker buildx build --push --platform $(TARGET_CONTAINER_PLATFORMS) --tag $(GITHUB_PACKAGES_IMAGE) .

.PHONY: github-release
github-release: changelog
Expand Down

0 comments on commit 5d05dd5

Please sign in to comment.