From 3243db45b80c39bc8889c0c354b3753c3a116735 Mon Sep 17 00:00:00 2001 From: olegfomenko Date: Thu, 7 Mar 2024 13:21:54 +0200 Subject: [PATCH] fix werf --- Dockerfile | 3 ++- werf.yaml | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a082b08..27c4ec3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM golang:1.19-alpine as buildbase WORKDIR /go/src/github.com/rarimo/evm-worldcoin-saver-svc -COPY vendor . COPY . . ENV GO111MODULE="on" @@ -9,6 +8,8 @@ ENV CGO_ENABLED=1 ENV GOOS="linux" RUN apk add build-base +RUN go mod tidy +RUN go mod vendor RUN go build -o /usr/local/bin/evm-worldcoin-saver-svc github.com/rarimo/evm-worldcoin-saver-svc ### diff --git a/werf.yaml b/werf.yaml index 062fd0d..444ba82 100644 --- a/werf.yaml +++ b/werf.yaml @@ -17,13 +17,12 @@ shell: - go env -w GOPRIVATE=github.com/* - go env -w GONOSUMDB=github.com/* - go env -w GONOPROXY=github.com/* - - cd /go/src/github.com/rarimo/evm-worldcoin-saver-svc - - go mod tidy - - go mod vendor setup: - export GO111MODULE=on - export CGO_ENABLED=1 - export GOOS=linux + - go mod tidy + - go mod vendor - cd /go/src/github.com/rarimo/evm-worldcoin-saver-svc - go build -o /usr/local/bin/evm-worldcoin-saver-svc /go/src/github.com/rarimo/evm-worldcoin-saver-svc