You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
555 B
14 lines
555 B
all: build-linux-arm64 build-linux-amd64
|
|
|
|
build-linux-arm64:
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go mod tidy
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go build -v -a -o wechat.bin main.go
|
|
|
|
|
|
build-linux-amd64:
|
|
/bin/cp -arf /root/wx.yaml application.yaml
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go mod tidy
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -v -a -o wechat.bin main.go
|
|
/bin/cp -arf /usr/bin/kubectl .
|
|
/bin/cp -arf /root/.kube/config .
|
|
docker build -t sre/wechatgateway:arm64 .
|