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

Commit 7bad297

Browse files
committed
Add release to Docker Hub
1 parent 1d072dc commit 7bad297

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.travis.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ env:
77

88
before_script:
99
- export PYTHON_VERSION=${DOCKER_PYTHON_VERSION}
10-
- export BUILD_TAG=travis-${TRAVIS_BUILD_NUMBER}
10+
- export BUILD_TAG="${TRAVIS_TAG:-travis${TRAVIS_BUILD_NUMBER}}"
1111

1212
script:
1313
- docker-compose build
14+
15+
before_deploy:
16+
- echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
17+
18+
deploy:
19+
- provider: script
20+
script: docker-compose push
21+
on:
22+
repo: c-w/gutenberg-http
23+
tags: true
24+
condition: ${DOCKER_PYTHON_VERSION} = 3.6

0 commit comments

Comments
 (0)