From 844dce95505fbb7fc9daa15ea29de96590533e6f Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Tue, 16 Aug 2022 10:09:40 +0800 Subject: [PATCH] build-linux-arm64 --- Makefile | 4 ++-- readme.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b8b9fbd..98f1d99 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: arm +all: build-linux-arm64 linux: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build @@ -6,6 +6,6 @@ linux: mac: CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -arm: +build-linux-arm64: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go mod tidy CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o exporter.bin main.go \ No newline at end of file diff --git a/readme.md b/readme.md index 590af49..4ed76cd 100644 --- a/readme.md +++ b/readme.md @@ -15,7 +15,7 @@ cd /root rm -rf sreExporter git clone https://git.sre.ink/go/sreExporter.git cd sreExporter -make arm +make build-linux-arm64 docker build -t sre/exporter:arm64 . kubectl rollout restart deployment -n kuboard sre-exporter ```