From b052d03fb5a8c457650e7078c4f773bc84d9a5d1 Mon Sep 17 00:00:00 2001 From: skeris Date: Fri, 16 Feb 2024 00:52:26 +0300 Subject: [PATCH] cahnge build token --- Dockerfile | 2 +- internal/app/app_verification.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 80a978b..9cea0a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /app ARG GITLAB_TOKEN RUN apk add git 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 . . RUN go mod download RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app ./cmd/verification/main.go diff --git a/internal/app/app_verification.go b/internal/app/app_verification.go index 9bac02a..e48a6e7 100644 --- a/internal/app/app_verification.go +++ b/internal/app/app_verification.go @@ -45,7 +45,7 @@ func Run(cfg *config.Config) { 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, ""), Secure: true, })