Skip to content

Commit

Permalink
Merge pull request #40 from QwantResearch/stable-push
Browse files Browse the repository at this point in the history
Only push build and push docker image on the stable version
  • Loading branch information
GuillaumeGomez committed Feb 19, 2020
2 parents adb8f82 + f5ee799 commit 7a16d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -23,7 +23,7 @@ before_install:
- sudo make install
- cd ..
- sudo ldconfig
- if [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
- if [ "$TRAVIS_RUST_VERSION" == "stable" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin;
fi

Expand All @@ -49,7 +49,7 @@ script:
- cd ..
# Run a complete deduplication
- (cd deduplicator && cargo run --release -- --osm ../importers/osm/test-files/relations_ways.pbf --output-csv test.csv)
- if [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
- if [ "$TRAVIS_RUST_VERSION" == "stable" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
docker build --label "org.label-schema.vcs-ref=$TRAVIS_COMMIT" -t qwantresearch/addresses-importer .;
docker push qwantresearch/addresses-importer;
fi

0 comments on commit 7a16d93

Please sign in to comment.