Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Add release to Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Apr 26, 2019
1 parent 1d072dc commit 7bad297
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ env:

before_script:
- export PYTHON_VERSION=${DOCKER_PYTHON_VERSION}
- export BUILD_TAG=travis-${TRAVIS_BUILD_NUMBER}
- export BUILD_TAG="${TRAVIS_TAG:-travis${TRAVIS_BUILD_NUMBER}}"

script:
- docker-compose build

before_deploy:
- echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin

deploy:
- provider: script
script: docker-compose push
on:
repo: c-w/gutenberg-http
tags: true
condition: ${DOCKER_PYTHON_VERSION} = 3.6

0 comments on commit 7bad297

Please sign in to comment.