cicd: add linux-amd64

This commit is contained in:
rainerosion 2023-04-15 16:34:03 +08:00
parent a6244f7a5a
commit a2ac7b02a6

View File

@ -10,8 +10,9 @@ steps:
commands: commands:
# - sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories # - sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# - apk update && apk add build-base # - apk update && apk add build-base
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o chatgpt-arm64 - mkdir wechatbot
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o chatgpt-amd64 - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ./wechatbot/chatgpt-arm64
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./wechatbot/chatgpt-amd64
- name: upload - name: upload
image: rainerosion/gocos image: rainerosion/gocos
settings: settings:
@ -21,8 +22,8 @@ steps:
from_secret: cos_secret_key from_secret: cos_secret_key
bucket_url: bucket_url:
from_secret: cos_bucket_url from_secret: cos_bucket_url
source: chatgpt-arm64 source: wechatbot
target: cicd/wechatbot target: cicd
- name: gitea_release - name: gitea_release
image: plugins/gitea-release image: plugins/gitea-release