Skip to content

Commit

Permalink
Updated travis cfg to push latest docker image on master builds.
Browse files Browse the repository at this point in the history
Updated docker hub repo to influxgraph/influxgraph.
  • Loading branch information
pkittenis committed Nov 3, 2018
1 parent 7500f48 commit 60ce422
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,11 @@ jobs:
password:
secure: YjKb3mcrgeUmNFVzlJxBQcvTE//X8dERdVqQyqPYgNNMo/NZgR6++gzdYSB25AP14hlFXalGuRZ5x5/t0ngv+eDE2YeCczPtAWGS2KG+Tym6XaIMfLesQsfrJhIB+7pj5iWzXYxhyChKBjWLkM1sz3GhCPSMBngBim4uH24Fja3xIuCCi9dmCMxV/j2laCPwW870Lc/gR5kLLsS9Lf9tZmGz0t6yujRqfW3wtzbQZX0VVun5LaUo01l9Q6tIhEOLswjJt/jVjSqvG7NGap3EzIFtIIgiyx9yFRnpDdxeVEIbp/jyZJgWXM6Wx9VaGzQDBIJUHpF9ro5pEiFCXWrSE19L/Y+mVoZy6SwhI/RwVhmEoYuOguxbDtyQTewl0ldDo3nZ7H0v5xo2DEWqdcVOTGIBd9FErhXNOP3Nz35AiJj+ovnEl9jxJEQgZGXCQnFks/cHDjmENhXjPiqX6FJNohCp+hZmbx4OCZ5x98Zema9K8zN/UPNpxxZwA8zdR6rrQe8iVHZ34aber9gg0mmHkvw1zj9QxKjKDhZR7wvI2eBcUSYGyrqIXCOlTF5rXAIbJ/XGBuebkrMQStE/aPyv6NZQbCtszgPL6BTKgT69ADOm50twgjdews1lIlymI8cwasvoPkOLXebrjjiyAO6Xr/IiBdFQBpQ5aJR/pRnKje0=
skip_upload_docs: true
after_deploy:
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
cd docker &&
docker build -t ikuosu/influxgraph:${TRAVIS_TAG} . &&
docker push ikuosu/influxgraph:${TRAVIS_TAG};
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
cd docker &&
docker build -t ikuosu/influxgraph:latest . &&
docker push ikuosu/influxgraph:latest;
fi
after_deploy:
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
cd docker &&
docker build --pull -t ikuosu/influxgraph:${TRAVIS_TAG} . &&
docker push influxgraph/influxgraph:${TRAVIS_TAG};
before_install:
- pip install -U pip setuptools wheel
- wget https://dl.influxdata.com/influxdb/releases/influxdb_${INFLUXDB_VERSION}_amd64.deb
Expand All @@ -95,6 +88,13 @@ script:
- flake8 influxgraph
after_success:
- codecov
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
cd docker &&
docker build --pull -t ikuosu/influxgraph:latest . &&
docker push influxgraph/influxgraph:latest;
fi

services:
- memcached
- docker

0 comments on commit 60ce422

Please sign in to comment.