在所有 Go 命令中设置 GOTOOLCHAIN=auto
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 4s
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 4s
This commit is contained in:
@@ -22,7 +22,7 @@ RUN go mod download
|
||||
COPY . .
|
||||
|
||||
# 编译 Worker 服务(静态链接)
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOTOOLCHAIN=auto go build \
|
||||
-ldflags="-w -s" \
|
||||
-o /build/worker \
|
||||
cmd/worker/main.go
|
||||
|
||||
Reference in New Issue
Block a user