Skip to content

Commit fba601e

Browse files
Add build image targets in ccm Makefile (#905)
1 parent 6f21021 commit fba601e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

hack/ccm/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ IMG=powervs-cloud-controller-manager
1919
POWERVS_CLOUD_CONTROLLER_COMMIT?=07d19bf
2020
TAG?=$(POWERVS_CLOUD_CONTROLLER_COMMIT)
2121

22+
build-image-linux-amd64: init-buildx
23+
{ \
24+
set -e ; \
25+
docker buildx build \
26+
--build-arg TARGETPLATFORM=linux/amd64 --build-arg ARCH=amd64 \
27+
--build-arg POWERVS_CLOUD_CONTROLLER_COMMIT=$(POWERVS_CLOUD_CONTROLLER_COMMIT)\
28+
-t $(REGISTRY)/$(IMG):$(TAG)_linux_amd64 . --target centos-base; \
29+
}
30+
31+
build-image-linux-ppc64le: init-buildx
32+
{ \
33+
set -e ; \
34+
docker buildx build \
35+
--build-arg TARGETPLATFORM=linux/ppc64le --build-arg ARCH=ppc64le\
36+
--build-arg POWERVS_CLOUD_CONTROLLER_COMMIT=$(POWERVS_CLOUD_CONTROLLER_COMMIT)\
37+
-t $(REGISTRY)/$(IMG):$(TAG)_linux_ppc64le . --target centos-base; \
38+
}
39+
2240
build-image-and-push-linux-amd64: init-buildx
2341
{ \
2442
set -e ; \

0 commit comments

Comments
 (0)