Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis-CI builds #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
language: go

go:
- 1.8.x
- 1.9.x
- master

install:
before_install:
- go get -v github.com/Masterminds/glide
- make get-deps
- make get-deps
- go get -v github.com/tcnksm/ghr
- go get -v github.com/mitchellh/gox

install:
- gox -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" ./...

after_success:
- ghr -u ${GITHUB_USERNAME} -t ${GITHUB_TOKEN} -replace -prerelease --debug pre-release dist/
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM golang:1.9.2-alpine AS build
RUN apk update
RUN apk add git
RUN mkdir -p /go/src/github.com/mindis/prom2click
ADD . /go/src/github.com/mindis/prom2click
RUN go get -v github.com/Masterminds/glide
WORKDIR /go/src/github.com/mindis/prom2click
RUN apk add make
RUN make get-deps
RUN go get -v github.com/mindis/prom2click
FROM alpine:3.5
COPY --from=build /go/bin/prom2click /usr/local/bin/prom2click
COPY --from=build /usr/local/go/lib/time/zoneinfo.zip /usr/local/go/lib/time/zoneinfo.zip
ENTRYPOINT ["/usr/local/bin/prom2click"]