From c299d470f57617bf86a565b827484d27e29615ea Mon Sep 17 00:00:00 2001 From: skeris Date: Tue, 9 Apr 2024 19:54:30 +0300 Subject: [PATCH] -- --- Dockerfile | 2 +- README.md | 1 - app/app.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 83595ca..1386d87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ COPY . . 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/" RUN go mod download -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o wrkr ./worker/main.go +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o wrkr ./main.go FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/alpine as prod COPY --from=build /app/wrkr . diff --git a/README.md b/README.md index 90df0b0..daca38f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # worker - ## Getting started To make it easy for you to get started with GitLab, here's a list of recommended next steps. diff --git a/app/app.go b/app/app.go index a889434..d05334a 100644 --- a/app/app.go +++ b/app/app.go @@ -144,7 +144,7 @@ func New(ctx context.Context, opts interface{}, ver appInit.Version) (appInit.Co } customerServiceClient := customer.NewCustomerServiceClient(customerServiceConn) - pgdal, err := dal.New(ctx, options.PostgresCredentials, nil) + pgdal, err := dal.New(ctx, options.PostgresCredentials, nil, nil) if err != nil { return nil, err }