ci: verify pet app build on development branch
ci / verify (push) Failing after 4s

This commit is contained in:
2026-10-01 13:26:34 +08:00
parent ed2095950d
commit abc7ad3c84
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ RUN go mod download
COPY . .
# 用真实构建产物覆盖 embed 目录(internal/admin/embed.go 里 //go:embed all:dist)
COPY --from=admin /app/dist ./internal/admin/dist
RUN go test ./...
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/pets-be ./cmd/server
# ── 2. 运行镜像 ──