add goprivate and change base images to gitea
Some checks failed
Lint / Lint (push) Failing after 2m15s

This commit is contained in:
skeris 2024-12-08 16:14:22 +03:00
parent d02f851c82
commit 10219e1098

@ -1,14 +1,13 @@
FROM golang:alpine as build FROM gitea.pena:3000/penadevops/container-images/golang:main as build
WORKDIR /app WORKDIR /app
ARG GITLAB_TOKEN ENV GOPRIVATE=gitea.pena/PenaSide/common,gitea.pena/PenaSide/linters-golang
RUN apk add git ENV GOINSECURE=gitea.pena/PenaSide/common,gitea.pena/PenaSide/linters-golang
ENV GOPRIVATE=penahub.gitlab.yandexcloud.net/backend/penahub_common ENV GOPROXY=https://goproxy.io,direct
RUN git config --global url."https://buildToken:glpat-axA8ttckx3aPf_xd2Dym@penahub.gitlab.yandexcloud.net/".insteadOf "https://penahub.gitlab.yandexcloud.net/"
COPY . . COPY . .
RUN go mod download RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app ./cmd/verification/main.go RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app ./cmd/verification/main.go
FROM alpine FROM gitea.pena:3000/penadevops/container-images/alpine:main
EXPOSE 7035 EXPOSE 7035
COPY --from=build app/app . COPY --from=build app/app .
COPY --from=build app/staging.env . COPY --from=build app/staging.env .