Skip to content

Commit f696ea0

Browse files
committed
Add build-docker-release to Makefile
1 parent ffe83c6 commit f696ea0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ build-docker:
1111
-t xiaozongyang/kube-node-metrics:latest \
1212
--push .
1313

14+
.PHONY:
15+
build-docker-release:
16+
$(eval TAG := $(shell git tag --points-at HEAD))
17+
docker buildx build --platform linux/amd64,linux/arm64 \
18+
-t xiaozongyang/kube-node-metrics:$(TAG) \
19+
--push .
20+
1421
.PHONY:
1522
clean:
1623
rm kube-node-metrics

0 commit comments

Comments
 (0)