修正编译命令:编译整个目录而不是单个文件
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 13m37s

This commit is contained in:
2026-01-19 17:26:43 +08:00
parent bb9f0a3a1f
commit 5be74f2698
3 changed files with 2 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-ldflags="-w -s" \
-o /build/api \
cmd/api/main.go
./cmd/api
# 下载 golang-migrate 工具
RUN go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest