From 6491e5cef1514206904faaab7b2d0396fe276a10 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Tue, 15 Sep 2026 11:46:20 +0000 Subject: [PATCH] Fix: Updated makefile to work with podman. --- Makefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 30fa7254..34822f60 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,27 @@ .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 \ +build-production: ## Build the production container image. + @podman manifest rm registry.tanshu.com/brewman:latest 2>/dev/null || true + @podman build \ + --platform linux/amd64,linux/arm64 \ + --manifest registry.tanshu.com/brewman:latest \ git@git.tanshu.com:tanshu/brewman.git$(if $(TAG),#v$(TAG)) + @podman manifest push --all registry.tanshu.com/brewman:latest docker://registry.tanshu.com/brewman:latest + $(if $(TAG),@podman manifest push --all registry.tanshu.com/brewman:latest docker://registry.tanshu.com/brewman:$(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 \ + @podman manifest rm brewman:test 2>/dev/null || true + @podman build \ + --platform linux/amd64,linux/arm64 \ + --manifest brewman:test \ --pull \ - --progress=plain \ - git@git.tanshu.com:tanshu/barker.git + git@git.tanshu.com:tanshu/brewman.git .PHONY: build-check-local -build-check-local: ## Multi-arch build without push (compile check) - @git archive --format=tar HEAD | docker buildx build \ +build-check-local: ## Local build without push (compile check) + @git archive --format=tar HEAD | podman build \ --platform linux/amd64 \ --tag brewman:test \ --pull \ - --progress=plain \ - --load \ - +