mirror of
https://github.com/thegeeklab/github-releases-notifier.git
synced 2024-11-14 18:10:40 +00:00
Create a Dockerfile and .travis.yml
This commit is contained in:
parent
776f164e82
commit
257001e7c1
14
.travis.yml
Normal file
14
.travis.yml
Normal 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
12
Dockerfile
Normal 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" ]
|
Loading…
Reference in New Issue
Block a user