fix: add go mod download before build
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
fcdbc55d8e
commit
f48a3b2ffe
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user