Skip to content

Commit

Permalink
Update docker compose version for travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 21, 2019
1 parent 1b2b6e0 commit 3accee8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ dist: trusty

env:
global:
- DOCKER_COMPOSE_VERSION: 1.22.0
- GIT_SUBMODULE_STRATEGY: recursive
- IMAGE_REGISTRY: registry.hub.docker.com
- IMAGE_NAME: registry.hub.docker.com/$TRAVIS_REPO_SLUG
- ARTIFACTS_PATH: $TRAVIS_BUILD_DIR/artifacts

before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin

script:
- $TRAVIS_BUILD_DIR/docker-compose.sh pull
- $TRAVIS_BUILD_DIR/docker-compose.sh build-cache
Expand All @@ -46,4 +53,3 @@ script:
#after_script:
# - docker pull tsub/ghr
# - docker run -v $TRAVIS_BUILD_DIR:/work -w /work -e GITHUB_TOKEN=$GITHUB_TOKEN ghr --username user --repository repo v1.0.0 pkg/

0 comments on commit 3accee8

Please sign in to comment.