0
0
mirror of https://github.com/thegeeklab/github-releases-notifier.git synced 2024-11-14 08:00:40 +00:00

Create a Dockerfile and .travis.yml

This commit is contained in:
Matthias Loibl 2017-08-08 14:58:15 +02:00
parent 776f164e82
commit 257001e7c1
No known key found for this signature in database
GPG Key ID: B1C7DF661ABB2C1A
2 changed files with 26 additions and 0 deletions

14
.travis.yml Normal file
View File

@ -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

12
Dockerfile Normal file
View File

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