Files
brewman/Makefile
T
2026-08-26 06:21:50 +00:00

28 lines
813 B
Makefile

.PHONY: build-production
build-production: ## Build the production docker image.
@docker buildx build \
--platform linux/amd64,linux/arm64/v8 \
--tag registry.tanshu.com/brewman:latest \
$(if $(TAG),--tag registry.tanshu.com/brewman:$(TAG)) \
--push \
git@git.tanshu.com:tanshu/brewman.git$(if $(TAG),#v$(TAG))
.PHONY: build-check
build-check: ## Multi-arch build without push (compile check)
@docker buildx build \
--platform linux/amd64,linux/arm64/v8 \
--tag brewman:test \
--pull \
--progress=plain \
git@git.tanshu.com:tanshu/barker.git
.PHONY: build-check-local
build-check-local: ## Multi-arch build without push (compile check)
@git archive --format=tar HEAD | docker buildx build \
--platform linux/amd64 \
--tag brewman:test \
--pull \
--progress=plain \
--load \
-