Skip to content

Commit

Permalink
Enable module support in Go for CI and Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mback2k committed Apr 5, 2019
1 parent 3c8b54f commit 7cbb7cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ sudo: false
matrix:
include:
- go: 1.x
env: RELEASE=true
env:
- RELEASE=true
- GO111MODULE=on
- go: master
env:
- RELEASE=false
- GO111MODULE=on
allow_failures:
- go: master

Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ RUN apk --no-cache --update upgrade && apk --no-cache add git

ADD . /go/src/github.com/mback2k/smtp-dkim-signer
WORKDIR /go/src/github.com/mback2k/smtp-dkim-signer
ENV GO111MODULE on

RUN go get
RUN go build -ldflags="-s -w"
Expand Down

0 comments on commit 7cbb7cf

Please sign in to comment.