check that gomod dir available before binding
Some checks failed
Deploy / CreateImage (push) Failing after 41s
Deploy / DeployService (push) Has been skipped

This commit is contained in:
skeris 2024-12-30 01:46:06 +03:00
parent 4b3ee58dd2
commit 83198a2d0e

@ -4,9 +4,9 @@ ENV GOPRIVATE=gitea.pena/PenaSide/common,gitea.pena/PenaSide/linters-golang,gite
ENV GOINSECURE=gitea.pena/PenaSide/common,gitea.pena/PenaSide/linters-golang,gitea.pena/PenaSide/customer,gitea.pena/PenaSide/trashlog,gitea.pena/PenaSide/hlog
ENV GOPROXY=https://proxy.golang.org,direct
COPY . .
RUN mkdir /go/pkg/mod/
RUN --mount=type=bind,source=go-cache,dst=/go/pkg/mod/,rw=true go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app ./cmd/verification/main.go
RUN ls /go/pkg/mod/
RUN pwd
RUN printenv