Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80addc5b20 |
@@ -3,13 +3,12 @@ build-production: ## Build the production container image. Usage: make build-pro
|
|||||||
@test -n "$(TAG)" || { echo "Usage: make build-production TAG=15.4.0" >&2; exit 1; }
|
@test -n "$(TAG)" || { echo "Usage: make build-production TAG=15.4.0" >&2; exit 1; }
|
||||||
@echo "Building image..."
|
@echo "Building image..."
|
||||||
@podman manifest rm registry.tanshu.com/brewman:latest 2>/dev/null || true
|
@podman manifest rm registry.tanshu.com/brewman:latest 2>/dev/null || true
|
||||||
@podman build \
|
@git archive --format=tar "v$(TAG)" | podman build \
|
||||||
--format docker \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--manifest registry.tanshu.com/brewman:latest \
|
--manifest registry.tanshu.com/brewman:latest \
|
||||||
--pull \
|
--pull \
|
||||||
--build-arg SETUPTOOLS_SCM_PRETEND_VERSION=$(TAG) \
|
--build-arg SETUPTOOLS_SCM_PRETEND_VERSION=$(TAG) \
|
||||||
https://git.tanshu.com/tanshu/brewman.git#v$(TAG)
|
-
|
||||||
|
|
||||||
@echo "Pushing manifests..."
|
@echo "Pushing manifests..."
|
||||||
@podman manifest push --all registry.tanshu.com/brewman:latest docker://registry.tanshu.com/brewman:latest
|
@podman manifest push --all registry.tanshu.com/brewman:latest docker://registry.tanshu.com/brewman:latest
|
||||||
@@ -20,13 +19,12 @@ build-check: ## Multi-arch build without push (compile check). Usage: make build
|
|||||||
@test -n "$(TAG)" || { echo "Usage: make build-check TAG=15.4.0" >&2; exit 1; }
|
@test -n "$(TAG)" || { echo "Usage: make build-check TAG=15.4.0" >&2; exit 1; }
|
||||||
@echo "Building image..."
|
@echo "Building image..."
|
||||||
@podman manifest rm brewman:test 2>/dev/null || true
|
@podman manifest rm brewman:test 2>/dev/null || true
|
||||||
@podman build \
|
@git archive --format=tar "v$(TAG)" | podman build \
|
||||||
--format docker \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--manifest brewman:test \
|
--manifest brewman:test \
|
||||||
--pull \
|
--pull \
|
||||||
--build-arg SETUPTOOLS_SCM_PRETEND_VERSION=$(TAG) \
|
--build-arg SETUPTOOLS_SCM_PRETEND_VERSION=$(TAG) \
|
||||||
https://git.tanshu.com/tanshu/brewman.git#v$(TAG)
|
-
|
||||||
|
|
||||||
.PHONY: build-check-local
|
.PHONY: build-check-local
|
||||||
# Defaults the version when built without a tag; an explicit TAG still wins.
|
# Defaults the version when built without a tag; an explicit TAG still wins.
|
||||||
@@ -35,7 +33,6 @@ build-check-local: ## Single-arch build without push (compile check). Usage: mak
|
|||||||
@echo "Building image..."
|
@echo "Building image..."
|
||||||
@podman manifest rm brewman:test 2>/dev/null || true
|
@podman manifest rm brewman:test 2>/dev/null || true
|
||||||
@podman build \
|
@podman build \
|
||||||
--format docker \
|
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
--manifest brewman:test \
|
--manifest brewman:test \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
|
|||||||
Reference in New Issue
Block a user