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.

19 lines
769 B

all: build-linux-arm64 build-linux-amd64
build-linux-arm64:
/bin/cp -arf /root/wx.yaml application.yaml
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
/bin/cp -arf /usr/bin/kubectl .
/bin/cp -arf /root/.kube/config .
docker build -t sre/wechatgateway:arm64 .
kubectl rollout restart deployment -n sre wehcat-gateway
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 .