Skip to content

Commit

Permalink
Prepare distribution of docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanwichmann committed Apr 11, 2017
1 parent 46b8305 commit a291ab7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ deploy:
skip_cleanup: true
on:
tags: true

after_deploy:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker build -t kelvin .;
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push stefanwichmann/kelvin;
fi
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM alpine:latest
WORKDIR /etc/opt/kelvin
VOLUME /etc/opt/kelvin

RUN apk --no-cache add ca-certificates && update-ca-certificates
COPY dist/kelvin-linux-amd64-v* /opt/kelvin/

ENTRYPOINT /opt/kelvin/kelvin 2>&1 | tee /var/log/kelvin.log

0 comments on commit a291ab7

Please sign in to comment.