Skip to content

Commit

Permalink
Fixed travis.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
HadesArchitect committed Aug 26, 2019
1 parent 4df1e08 commit 1bd4122
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
dist: xenial # required for Python >= 3.7
language: python
python:
- "3.7"
- "3.7"

# Build the docker image
script:
- docker build -t ${TRAVIS_COMMIT} .
- docker build -t ${TRAVIS_COMMIT} .

# If successful, see if we need to publish also
after_success:
- test -z $TRAVIS_TAG && travis_terminate 0
- docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-python:${TRAVIS_TAG}
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push killrvideo/killrvideo-python:${TRAVIS_TAG}
- [ $(git tag --sort=-v:refname | grep -E '^\d+.\d+.\d+$' | head -n1) == "$TRAVIS_TAG" ] && docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-python:latest; docker push killrvideo/killrvideo-python:latest

- test -z $TRAVIS_TAG && travis_terminate 0
- docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-python:${TRAVIS_TAG}
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push killrvideo/killrvideo-python:${TRAVIS_TAG}
- "[ $(git tag --sort=-v:refname | grep -E '^\\d+.\\d+.\\d+$' | head -n1) == \"$TRAVIS_TAG\" ] && docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-python:latest; docker push killrvideo/killrvideo-python:latest"
# Sudo required for doing docker build
sudo: required
services:
- docker
- docker

env:
global:
Expand Down

0 comments on commit 1bd4122

Please sign in to comment.