split docker build into separate job
@@ -32,14 +32,6 @@ jobs:
- make test
- make crossbuild
- make smoke
- - if [[ $TRAVIS_PULL_REQUEST = 'false' && $DOCKER_LOGIN_PASSWORD && $DOCKER_LOGIN_USERNAME ]]; then
- sudo apt-get update;
- sudo apt-get -y install docker-ce;
- make docker-build smoke-docker docker-push;
- fi
- - echo "TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}"
- - echo "TRAVIS_BRANCH=${TRAVIS_BRANCH}"
- - make send-docker-hub-trigger
addons:
artifacts:
paths:
@@ -49,6 +41,18 @@ jobs:
- travis-ci/worker/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
- travis-ci/worker/$(git describe --always --dirty --tags)
- travis-ci/worker/$TRAVIS_BRANCH
+ - name: "docker"
+ if: type != 'pull_request' && env(DOCKER_LOGIN_PASSWORD) is present && env(DOCKER_LOGIN_USERNAME) is present
+ script:
+ - make docker-build
+ - make smoke-docker
+ - make docker-push
+ - make send-docker-hub-trigger
+ addons:
+ apt:
+ update: true
+ packages:
+ - docker-ce
- name: "http-job-test"
script:
- travis_retry make deps
