Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 6adc476

Browse files
committed
added platofrm and customizable REGISTRY_NAME in makefile
1 parent 601b7ac commit 6adc476

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
.PHONY: test build container push clean
1515

1616
PROJECT_DIR=/app
17-
REGISTRY_NAME=ctrox
17+
REGISTRY_NAME ?= ctrox
1818
IMAGE_NAME=csi-s3
1919
VERSION ?= dev
2020
IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(VERSION)
@@ -28,8 +28,8 @@ test:
2828
docker build -t $(TEST_IMAGE_TAG) -f test/Dockerfile .
2929
docker run --rm --privileged -v $(PWD):$(PROJECT_DIR) --device /dev/fuse $(TEST_IMAGE_TAG)
3030
container:
31-
docker build -t $(IMAGE_TAG) -f cmd/s3driver/Dockerfile .
32-
docker build -t $(FULL_IMAGE_TAG) -f cmd/s3driver/Dockerfile.full .
31+
docker build --platform=linux/amd64 -t $(IMAGE_TAG) -f cmd/s3driver/Dockerfile .
32+
docker build --platform=linux/amd64 -t $(FULL_IMAGE_TAG) -f cmd/s3driver/Dockerfile.full .
3333
push: container
3434
docker push $(IMAGE_TAG)
3535
docker push $(FULL_IMAGE_TAG)

0 commit comments

Comments
 (0)