修正编译命令:编译整个目录而不是单个文件
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 13m37s
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 13m37s
This commit is contained in:
@@ -24,7 +24,7 @@ COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
|
||||
-ldflags="-w -s" \
|
||||
-o /build/worker \
|
||||
cmd/worker/main.go
|
||||
./cmd/worker
|
||||
|
||||
# ================================
|
||||
# 阶段 2: 运行阶段
|
||||
|
||||
Reference in New Issue
Block a user