Fix: Updated makefile to work with podman.
This commit is contained in:
@@ -1,27 +1,27 @@
|
|||||||
.PHONY: build-production
|
.PHONY: build-production
|
||||||
build-production: ## Build the production docker image.
|
build-production: ## Build the production container image.
|
||||||
@docker buildx build \
|
@podman manifest rm registry.tanshu.com/brewman:latest 2>/dev/null || true
|
||||||
--platform linux/amd64,linux/arm64/v8 \
|
@podman build \
|
||||||
--tag registry.tanshu.com/brewman:latest \
|
--platform linux/amd64,linux/arm64 \
|
||||||
$(if $(TAG),--tag registry.tanshu.com/brewman:$(TAG)) \
|
--manifest registry.tanshu.com/brewman:latest \
|
||||||
--push \
|
|
||||||
git@git.tanshu.com:tanshu/brewman.git$(if $(TAG),#v$(TAG))
|
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
|
.PHONY: build-check
|
||||||
build-check: ## Multi-arch build without push (compile check)
|
build-check: ## Multi-arch build without push (compile check)
|
||||||
@docker buildx build \
|
@podman manifest rm brewman:test 2>/dev/null || true
|
||||||
--platform linux/amd64,linux/arm64/v8 \
|
@podman build \
|
||||||
--tag brewman:test \
|
--platform linux/amd64,linux/arm64 \
|
||||||
|
--manifest brewman:test \
|
||||||
--pull \
|
--pull \
|
||||||
--progress=plain \
|
git@git.tanshu.com:tanshu/brewman.git
|
||||||
git@git.tanshu.com:tanshu/barker.git
|
|
||||||
|
|
||||||
.PHONY: build-check-local
|
.PHONY: build-check-local
|
||||||
build-check-local: ## Multi-arch build without push (compile check)
|
build-check-local: ## Local build without push (compile check)
|
||||||
@git archive --format=tar HEAD | docker buildx build \
|
@git archive --format=tar HEAD | podman build \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
--tag brewman:test \
|
--tag brewman:test \
|
||||||
--pull \
|
--pull \
|
||||||
--progress=plain \
|
|
||||||
--load \
|
|
||||||
-
|
-
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user