Skip to content

Commit

Permalink
Allow different platform specified in build-image (#254)
Browse files Browse the repository at this point in the history
Signed-off-by: Tiger Kaovilai <[email protected]>
  • Loading branch information
kaovilai authored Oct 8, 2024
1 parent 857edac commit 2d4bc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ container-name:
build-image: build-all
@echo -e "${GREEN}Building plugin image${WHITE}"
cp Dockerfile _output/bin/$(GOOS)/$(GOARCH)/Dockerfile
${OCI_BIN} build -t ${DOCKER_PREFIX}/${IMAGE_NAME}:${DOCKER_TAG} -f _output/bin/$(GOOS)/$(GOARCH)/Dockerfile _output/bin/$(GOOS)/$(GOARCH)
${OCI_BIN} build --platform=$(GOOS)/$(GOARCH) -t ${DOCKER_PREFIX}/${IMAGE_NAME}:${DOCKER_TAG} -f _output/bin/$(GOOS)/$(GOARCH)/Dockerfile _output/bin/$(GOOS)/$(GOARCH)

push: build-image
@echo -e "${GREEN}Pushing plugin image to local registry${WHITE}"
Expand Down

0 comments on commit 2d4bc21

Please sign in to comment.