Skip to content

Commit abe4a6d

Browse files
committed
add versioned dockerfiles
1 parent 5998016 commit abe4a6d

File tree

4 files changed

+47
-4
lines changed

4 files changed

+47
-4
lines changed

.travis.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
language: go
2-
go:
3-
- 1.6
4-
- 1.5
2+
sudo: required
3+
services:
4+
- docker
5+
matrix:
6+
include:
7+
- go: "1.10"
8+
env: GO_VERSION=1.10
9+
- go: "1.9"
10+
env: GO_VERSION=1.9
11+
- go: "1.8"
12+
env: GO_VERSION=1.8
513
env:
6-
- GO15VENDOREXPERIMENT=1
14+
global:
15+
- WATCHER_VERSION=0.2.4
16+
17+
matrix:
18+
fast_finish: true
19+
20+
script: |
21+
docker build -f Dockerfiles/Dockerfile.go$GO_VERSION -it canthefason/go-watcher:$WATCHER_VERSION-$GO_VERSION .
22+
docker push canthefason/go-watcher:$WATCHER_VERSION-$GO_VERSION
723

Dockerfiles/Dockerfile.go1.10

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM golang:1.10-alpine3.7
2+
3+
VOLUME /go/src
4+
5+
ARG WATCHER_VERSION 0.2.4
6+
7+
ADD https://github.com/canthefason/go-watcher/releases/download/v${WATCHER_VERSION}/watcher-${WATCHER_VERSION}-linux-amd64 $GOPATH/bin/watcher
8+
9+
CMD ["watcher"]

Dockerfiles/Dockerfile.go1.8

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM golang:1.8-alpine3.6
2+
3+
VOLUME /go/src
4+
5+
ARG WATCHER_VERSION 0.2.4
6+
7+
ADD https://github.com/canthefason/go-watcher/releases/download/v${WATCHER_VERSION}/watcher-${WATCHER_VERSION}-linux-amd64 $GOPATH/bin/watcher
8+
9+
CMD ["watcher"]

Dockerfiles/Dockerfile.go1.9

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM golang:1.9-alpine3.7
2+
3+
VOLUME /go/src
4+
5+
ARG WATCHER_VERSION 0.2.4
6+
7+
ADD https://github.com/canthefason/go-watcher/releases/download/v${WATCHER_VERSION}/watcher-${WATCHER_VERSION}-linux-amd64 $GOPATH/bin/watcher
8+
9+
CMD ["watcher"]

0 commit comments

Comments
 (0)