Skip to content

Commit 05112eb

Browse files
committed
Adjust container build/push and pull targets
1 parent 82c56a2 commit 05112eb

1 file changed

Lines changed: 12 additions & 17 deletions

File tree

Makefile

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,24 @@ test-integration:
4545
## Build and push multi-arch image (linux/amd64 + linux/arm64) for GHCR
4646
build-and-push: container-build container-push
4747

48-
## Build multi-arch image (linux/amd64 + linux/arm64) for GHCR
48+
## Build a single-arch image for local use/tests
4949
container-build:
50-
$(CONTAINER) buildx build --load \
51-
--platform=linux/amd64 \
50+
$(CONTAINER) build \
5251
--file Containerfile \
53-
--tag $(IMAGE):$(TAG)-amd64 \
52+
--tag $(IMAGE):$(TAG) \
5453
.
55-
$(CONTAINER) buildx build --load \
56-
--platform=linux/arm64 \
57-
--file Containerfile \
58-
--tag $(IMAGE):$(TAG)-arm64 \
59-
.
60-
-@$(CONTAINER) rmi $(IMAGE):$(TAG) >/dev/null 2>&1 || true
61-
-@$(CONTAINER) manifest rm $(IMAGE):$(TAG) >/dev/null 2>&1 || true
62-
$(CONTAINER) manifest create $(IMAGE):$(TAG) \
63-
$(IMAGE):$(TAG)-amd64 \
64-
$(IMAGE):$(TAG)-arm64
54+
55+
## Pull the multi-arch manifest tag from registry
56+
container-pull:
57+
$(CONTAINER) pull $(IMAGE):$(TAG)
6558

6659
## Push multi-arch image manifest + all platform layers to GHCR
6760
container-push:
68-
$(CONTAINER) manifest push --all \
69-
$(IMAGE):$(TAG) \
70-
docker://$(IMAGE):$(TAG)
61+
$(CONTAINER) buildx build --push \
62+
--platform=linux/amd64,linux/arm64 \
63+
--file Containerfile \
64+
--tag $(IMAGE):$(TAG) \
65+
.
7166

7267
## Quick local smoke check against the running server
7368
curl-local-health:

0 commit comments

Comments
 (0)