Fold the docker build trigger into previous stage
@@ -54,6 +54,9 @@ jobs:
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
- stage: Build and Test Packages
script:
- if [[ $TRAVIS_PULL_REQUEST = 'false' && $PACKAGECLOUD_TOKEN ]]; then
@@ -63,11 +66,6 @@ jobs:
gem install package_cloud --no-ri --no-rdoc;
make package smoke-package;
fi
- - stage: Trigger Automated Build on Docker Hub
- script:
- - echo "TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}"
- - echo "TRAVIS_BRANCH=${TRAVIS_BRANCH}"
- - make send-docker-hub-trigger
notifications:
slack:
secure: IyWrJhruYYHEIvi4YsN3vV2rycctnRiIolzUMwgiDo275AK6O4h58+fu1EXFjMZmCqdOan98MsF709yW3S9zDaZo2s233dKWzQ95S8+n2RS+pGsxBZacCiEvOh0u1K3f19hpf8zj0ybtpcox+a6yrxK+F3er9WveO39yPZjzwCA=
