cahnge build token
This commit is contained in:
parent
5754807516
commit
b052d03fb5
@ -3,7 +3,7 @@ WORKDIR /app
|
|||||||
ARG GITLAB_TOKEN
|
ARG GITLAB_TOKEN
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
ENV GOPRIVATE=penahub.gitlab.yandexcloud.net/backend/penahub_common
|
ENV GOPRIVATE=penahub.gitlab.yandexcloud.net/backend/penahub_common
|
||||||
RUN git config --global url."https://forgomod:${GITLAB_TOKEN}@penahub.gitlab.yandexcloud.net/".insteadOf "https://penahub.gitlab.yandexcloud.net/"
|
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
|
||||||
|
@ -45,7 +45,7 @@ func Run(cfg *config.Config) {
|
|||||||
logger.Fatal("MongoClient", zap.Error(err))
|
logger.Fatal("MongoClient", zap.Error(err))
|
||||||
}
|
}
|
||||||
|
|
||||||
minioClient, err := minio.New("localhost:9001", &minio.Options{
|
minioClient, err := minio.New(cfg.S3Endpoint, &minio.Options{
|
||||||
Creds: credentials.NewStaticV4(cfg.S3AccessKeyID, cfg.S3SecretKey, ""),
|
Creds: credentials.NewStaticV4(cfg.S3AccessKeyID, cfg.S3SecretKey, ""),
|
||||||
Secure: true,
|
Secure: true,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user