Skip to content

Commit

Permalink
Merge pull request #1 from andreasfertig/pushToDockerHub
Browse files Browse the repository at this point in the history
Added .travis.yml for deployment to Docker Hub.
  • Loading branch information
andreasfertig authored Jun 21, 2019
2 parents 0a991c7 + 28f6bcd commit f902cde
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
install:
- make insights

script:
- make build
- docker images
- |
if [[ "${TRAVIS_BRANCH}" = "master" ]]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker tag cppinsights-webfrontend $DOCKER_USERNAME/cppinsights-webfrontend
docker push $DOCKER_USERNAME/cppinsights-webfrontend
fi

0 comments on commit f902cde

Please sign in to comment.