fix: add go mod download before build
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
jordan 2026-02-07 06:37:33 +00:00
parent fcdbc55d8e
commit f48a3b2ffe

View File

@ -14,6 +14,10 @@ WORKDIR /app
COPY pkg/ ./pkg/
COPY services/auth-svc/ ./services/auth-svc/
# Download dependencies (populates go.sum if empty)
RUN cd pkg && go mod download
RUN cd services/auth-svc && go mod download
# Build from the service directory (uses replace directive for ../pkg)
RUN cd services/auth-svc && CGO_ENABLED=0 go build -o /auth-svc ./cmd/server