core/deployments/renew_tests/TestsDockerfile

22 lines
629 B
Plaintext
Raw Normal View History

2025-08-26 08:39:16 +00:00
FROM gitea.pena/penadevops/container-images/golang:1.23.8-alpine AS build
2025-08-26 08:33:23 +00:00
ARG REGISTRY_USER
ARG REGISTRY_PASSWORD
2025-08-26 08:39:16 +00:00
ENV GOPRIVATE=gitea.pena/*
2025-08-26 08:33:23 +00:00
RUN git config --global url."https://${REGISTRY_USER}:${REGISTRY_PASSWORD}@gitea.pena/".insteadOf "https://gitea.pena/"
2025-08-26 07:53:01 +00:00
2025-08-26 07:30:47 +00:00
WORKDIR /app
COPY go.mod go.sum ./
2025-08-26 08:49:17 +00:00
RUN export GIT_SSL_NO_VERIFY=true && \
export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt && \
2025-08-26 08:46:47 +00:00
go env -w GOINSECURE="gitea.pena/*" && \
go mod download
2025-08-26 07:30:47 +00:00
COPY . .
2025-08-26 08:39:16 +00:00
RUN apk add --no-cache tzdata curl catatonit
2025-07-31 12:42:30 +00:00
ENTRYPOINT ["/sbin/catatonit", "--"]
CMD go run ./cmd/main.go & sleep 30 && go test ./tests && kill %1