26 lines
1.1 KiB
Makefile
26 lines
1.1 KiB
Makefile
.PHONY: build-production
|
|
build-production: ## Build the production container image. Usage: make build-production TAG=15.4.0
|
|
@echo "Building 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 \
|
|
--pull \
|
|
--build-arg SETUPTOOLS_SCM_PRETEND_VERSION_FOR_BREWMAN=$(TAG) \
|
|
git@git.tanshu.com:tanshu/brewman.git#v$(TAG)
|
|
|
|
@echo "Pushing manifests..."
|
|
@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). Usage: make build-check TAG=15.4.0
|
|
@echo "Building image..."
|
|
@podman manifest rm brewman:test 2>/dev/null || true
|
|
@podman build \
|
|
--platform linux/amd64,linux/arm64 \
|
|
--manifest brewman:test \
|
|
--pull \
|
|
--build-arg SETUPTOOLS_SCM_PRETEND_VERSION_FOR_BREWMAN=$(TAG) \
|
|
git@git.tanshu.com:tanshu/brewman.git#v$(TAG)
|