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

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

@ -3,10 +3,14 @@ WORKDIR /app
ENV GOPRIVATE=gitea.pena/PenaSide/common,gitea.pena/PenaSide/linters-golang,gitea.pena/PenaSide/customer,gitea.pena/PenaSide/trashlog,gitea.pena/PenaSide/hlog ENV GOPRIVATE=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 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
ENV GOPATH=go-cache
COPY . . COPY . .
RUN --mount=type=bind,source=go-cache,dst=/go/pkg/mod/,rw=true go mod download RUN mkdir -p /go/pkg/mod/
RUN ls /go/pkg/mod
RUN --mount=type=bind,source=go-cache,dst=/go-cache,rw=true go mod download
RUN ls /go/pkg/mod
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 ls /go/pkg/mod
RUN pwd RUN pwd
RUN printenv RUN printenv