This commit is contained in:
skeris 2024-04-09 19:54:30 +03:00
parent 0c5bfe4631
commit c299d470f5
3 changed files with 2 additions and 3 deletions

@ -4,7 +4,7 @@ COPY . .
ENV GOPRIVATE=penahub.gitlab.yandexcloud.net/backend/penahub_common 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 git config --global url."https://buildToken:glpat-axA8ttckx3aPf_xd2Dym@penahub.gitlab.yandexcloud.net/".insteadOf "https://penahub.gitlab.yandexcloud.net/"
RUN go mod download 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 FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/alpine as prod
COPY --from=build /app/wrkr . COPY --from=build /app/wrkr .

@ -1,7 +1,6 @@
# worker # worker
## Getting started ## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps. To make it easy for you to get started with GitLab, here's a list of recommended next steps.

@ -144,7 +144,7 @@ func New(ctx context.Context, opts interface{}, ver appInit.Version) (appInit.Co
} }
customerServiceClient := customer.NewCustomerServiceClient(customerServiceConn) customerServiceClient := customer.NewCustomerServiceClient(customerServiceConn)
pgdal, err := dal.New(ctx, options.PostgresCredentials, nil) pgdal, err := dal.New(ctx, options.PostgresCredentials, nil, nil)
if err != nil { if err != nil {
return nil, err return nil, err
} }