Skip to content

Commit

Permalink
Bump go version to 1.13 (#178)
Browse files Browse the repository at this point in the history
* Bump go version to 1.13

* Use install script for go-task in travis

* Add bin/task to gitignore for travis

* Use install script for go-task in docker file
  • Loading branch information
Kristian Dalmo Olsen authored Dec 10, 2019
1 parent 8e241e0 commit 0c875bf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ build/*
# Taskfile
.task

# Task installation in Travis
bin/task

# Editor
.idea/
.idea/
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ sudo: false
matrix:
include:
- os: osx
go: 1.12.x
go: 1.13.x
- os: linux
go: 1.12.x
go: 1.13.x
notifications:
email: false
script:
- go get -u -v github.com/go-task/task/cmd/task && task ci
- curl -sL https://taskfile.dev/install.sh | sh
- ./bin/task ci
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM golang:1.12 as builder
FROM golang:1.13 as builder
ADD . /go/src/github.com/telia-oss/github-pr-resource
WORKDIR /go/src/github.com/telia-oss/github-pr-resource
RUN go get -u -v github.com/go-task/task/cmd/task && task build
RUN curl -sL https://taskfile.dev/install.sh | sh
RUN ./bin/task build

FROM alpine:3.8 as resource
COPY --from=builder /go/src/github.com/telia-oss/github-pr-resource/build /opt/resource
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ require (
golang.org/x/oauth2 v0.0.0-20181031022657-8527f56f7107
google.golang.org/appengine v1.2.0 // indirect
)

go 1.13

0 comments on commit 0c875bf

Please sign in to comment.