add goprivate and change base images to gitea
Some checks failed
Lint / Lint (push) Failing after 1m19s
Some checks failed
Lint / Lint (push) Failing after 1m19s
This commit is contained in:
parent
d02f851c82
commit
2c7ad0d153
10
Dockerfile
10
Dockerfile
@ -1,14 +1,12 @@
|
||||
FROM golang:alpine as build
|
||||
FROM gitea.pena:3000/penadevops/container-images/golang:main as build
|
||||
WORKDIR /app
|
||||
ARG GITLAB_TOKEN
|
||||
RUN apk add git
|
||||
ENV GOPRIVATE=penahub.gitlab.yandexcloud.net/backend/penahub_common
|
||||
RUN git config --global url."https://buildToken:glpat-axA8ttckx3aPf_xd2Dym@penahub.gitlab.yandexcloud.net/".insteadOf "https://penahub.gitlab.yandexcloud.net/"
|
||||
ENV GOPRIVATE=gitea.pena/PenaSide/*
|
||||
ENV GOINSECURE=gitea.pena/PenaSide/*
|
||||
COPY . .
|
||||
RUN go mod download
|
||||
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
|
||||
COPY --from=build app/app .
|
||||
COPY --from=build app/staging.env .
|
||||
|
Loading…
Reference in New Issue
Block a user