core/deployments/renew_tests/TestsDockerfile
pasha1coil b09e84f407
Some checks failed
Tests / CreateImage (push) Failing after 45s
Tests / Tests (push) Has been skipped
upd testsDockerfile
2025-08-26 11:35:55 +03:00

17 lines
424 B
Plaintext

FROM gitea.pena/penadevops/container-images/golang:1.23.8-alpine
ENV GOPRIVATE=gitea.pena/*
ARG REGISTRY_USER
ARG REGISTRY_PASSWORD
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
COPY . .
ENTRYPOINT ["/sbin/catatonit", "--"]
CMD go run ./cmd/main.go & sleep 30 && go test ./tests && kill %1