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" ]