diff --git a/deployments/renew_tests/TestsDockerfile b/deployments/renew_tests/TestsDockerfile index 478da55..415efbb 100644 --- a/deployments/renew_tests/TestsDockerfile +++ b/deployments/renew_tests/TestsDockerfile @@ -7,10 +7,13 @@ ENV GOPRIVATE=gitea.pena/* RUN git config --global url."https://${REGISTRY_USER}:${REGISTRY_PASSWORD}@gitea.pena/".insteadOf "https://gitea.pena/" +ADD pena-ca.crt /usr/local/share/ca-certificates/pena-ca.crt +RUN apk add --no-cache git ca-certificates && update-ca-certificates + WORKDIR /app COPY go.mod go.sum ./ -RUN export GIT_SSL_NO_VERIFY=true && \ - export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt && \ + +RUN export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt && \ go env -w GOINSECURE="gitea.pena/*" && \ go mod download