check that gomod dir available before binding
All checks were successful
Deploy / CreateImage (push) Successful in 2m3s
Deploy / DeployService (push) Successful in 24s

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

@ -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 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 ENV GOPROXY=https://proxy.golang.org,direct
COPY . . COPY . .
RUN mkdir -p /go/pkg/mod/
RUN --mount=type=bind,source=go-cache,dst=/go/pkg/mod/,rw=true go mod download 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 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app ./cmd/verification/main.go
RUN ls /go/pkg/mod/
RUN pwd RUN pwd
RUN printenv RUN printenv