Switch to go mod from dep

This commit is contained in:
stefanprodan
2019-06-11 19:37:36 +03:00
parent 678f79fc61
commit 028933b635
18 changed files with 630 additions and 1346 deletions

View File

@@ -6,8 +6,10 @@ WORKDIR /go/src/github.com/weaveworks/flagger
COPY . .
#RUN GO111MODULE=on go mod download
RUN GIT_COMMIT=$(git rev-list -1 HEAD) && \
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -mod=vendor -ldflags "-s -w \
-X github.com/weaveworks/flagger/pkg/version.REVISION=${GIT_COMMIT}" \
-a -installsuffix cgo -o flagger ./cmd/flagger/*