From 257001e7c158e8f5888aabba8e38c5f712916cb2 Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Tue, 8 Aug 2017 14:58:15 +0200 Subject: [PATCH] Create a Dockerfile and .travis.yml --- .travis.yml | 14 ++++++++++++++ Dockerfile | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .travis.yml create mode 100644 Dockerfile diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3413972 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: go + +go: + - 1.8.x + +before_install: + - go get -v github.com/golang/lint/golint + +script: + - make clean + - make vet + - make lint + - make test + - make build diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9d3a3fa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1.8 as builder + +ADD . /go/src/github.com/justwatchcom/github-releases-notifier +WORKDIR /go/src/github.com/justwatchcom/github-releases-notifier + +RUN make build + +FROM alpine:3.6 +RUN apk --no-cache add ca-certificates + +COPY --from=builder /go/src/github.com/justwatchcom/github-releases-notifier /bin/ +ENTRYPOINT [ "/bin/github-releases-notifier" ]