upd testsDockerfile
This commit is contained in:
parent
9312631783
commit
319620300f
@ -1,24 +1,12 @@
|
|||||||
FROM gitea.pena/penadevops/container-images/golang:1.23.8-alpine AS build
|
FROM docker.io/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/"
|
|
||||||
|
|
||||||
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
|
WORKDIR /app
|
||||||
|
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
RUN export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt && \
|
ADD pena-ca.crt /usr/local/share/ca-certificates/cacert.crt
|
||||||
go env -w GOINSECURE="gitea.pena/*" && \
|
RUN apk add git && update-ca-certificates
|
||||||
go mod download
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN apk add --no-cache tzdata curl catatonit
|
RUN go mod download
|
||||||
ENTRYPOINT ["/sbin/catatonit", "--"]
|
|
||||||
|
|
||||||
CMD go run ./cmd/main.go & sleep 30 && go test ./tests && kill %1
|
CMD go run ./cmd/main.go & sleep 30 && go test ./tests && kill %1
|
||||||
|
Loading…
Reference in New Issue
Block a user