Skip to content

Commit

Permalink
use vendorized deps while building docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
foosinn committed May 4, 2020
1 parent 395d0a8 commit 70ada12
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ ENV CGO_ENABLED=0 \
GO111MODULE=on

RUN true \
&& go mod tidy \
&& go test ./plugin \
&& go build -o drone-tree-config github.com/bitsbeats/drone-tree-config/cmd/drone-tree-config \
&& go test -mod=vendor ./plugin \
&& go build -mod=vendor -o drone-tree-config github.com/bitsbeats/drone-tree-config/cmd/drone-tree-config \
&& strip drone-tree-config

# ---
Expand Down

0 comments on commit 70ada12

Please sign in to comment.