Skip to content

Commit 0c875bf

Browse files
author
Kristian Dalmo Olsen
authored
Bump go version to 1.13 (#178)
* 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
1 parent 8e241e0 commit 0c875bf

4 files changed

Lines changed: 13 additions & 6 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ build/*
44
# Taskfile
55
.task
66

7+
# Task installation in Travis
8+
bin/task
9+
710
# Editor
8-
.idea/
11+
.idea/

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ sudo: false
33
matrix:
44
include:
55
- os: osx
6-
go: 1.12.x
6+
go: 1.13.x
77
- os: linux
8-
go: 1.12.x
8+
go: 1.13.x
99
notifications:
1010
email: false
1111
script:
12-
- go get -u -v github.com/go-task/task/cmd/task && task ci
12+
- curl -sL https://taskfile.dev/install.sh | sh
13+
- ./bin/task ci

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
FROM golang:1.12 as builder
1+
FROM golang:1.13 as builder
22
ADD . /go/src/github.com/telia-oss/github-pr-resource
33
WORKDIR /go/src/github.com/telia-oss/github-pr-resource
4-
RUN go get -u -v github.com/go-task/task/cmd/task && task build
4+
RUN curl -sL https://taskfile.dev/install.sh | sh
5+
RUN ./bin/task build
56

67
FROM alpine:3.8 as resource
78
COPY --from=builder /go/src/github.com/telia-oss/github-pr-resource/build /opt/resource

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ require (
1111
golang.org/x/oauth2 v0.0.0-20181031022657-8527f56f7107
1212
google.golang.org/appengine v1.2.0 // indirect
1313
)
14+
15+
go 1.13

0 commit comments

Comments
 (0)