From 8d6e197b8eafb9095ce0963028443c39f6399788 Mon Sep 17 00:00:00 2001 From: pasha1coil Date: Tue, 26 Aug 2025 11:39:16 +0300 Subject: [PATCH] upd testsDockerfile --- deployments/renew_tests/TestsDockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deployments/renew_tests/TestsDockerfile b/deployments/renew_tests/TestsDockerfile index 3b071f4..3484649 100644 --- a/deployments/renew_tests/TestsDockerfile +++ b/deployments/renew_tests/TestsDockerfile @@ -1,16 +1,18 @@ -FROM gitea.pena/penadevops/container-images/golang:1.23.8-alpine - -ENV GOPRIVATE=gitea.pena/* +FROM gitea.pena/penadevops/container-images/golang:1.23.8-alpine AS build ARG REGISTRY_USER ARG REGISTRY_PASSWORD + +ENV GOPRIVATE=gitea.pena/* + RUN git config --global url."https://${REGISTRY_USER}:${REGISTRY_PASSWORD}@gitea.pena/".insteadOf "https://gitea.pena/" WORKDIR /app COPY go.mod go.sum ./ -RUN go mod download +RUN export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt && go mod download COPY . . +RUN apk add --no-cache tzdata curl catatonit ENTRYPOINT ["/sbin/catatonit", "--"] CMD go run ./cmd/main.go & sleep 30 && go test ./tests && kill %1