Skip to content

Commit

Permalink
Add init Dockerfile and travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mairea50 committed Mar 6, 2019
1 parent 1ae6620 commit 212b16c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/README.md
.gitlab-ci.yml
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
variables:
TERRAFORM_VERSION: 'xxx'
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,23 @@ install:
- true

script:
- make $TARGETS
- go get
- make
- export REPO=maireanu/zfsbeat
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH; fi`
- echo "$DOCKER_PASS" | docker login --username "$DOCKER_USER" --password-stdin
- docker build --pull --force-rm -t $REPO:$TAG .
- docker push $REPO:$TAG

deploy:
provider: releases
api_key:
secure: $GH_TOKEN
skip_cleanup: true
file:
- consulbeat
on:
tags: true

after_success:
# Copy full.cov to coverage.txt because codecov.io requires this file
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM scratch

ADD zfsbeat /usr/local/bin/

0 comments on commit 212b16c

Please sign in to comment.