travis.yml: Make script into individual lines

Setting -eu fucks up travis's scripts, so instead we should feed it everything
command-by-command so it can fail out using its own logic.
pull/21/head
Mike Lang 6 years ago committed by Christopher Usher
parent 4dc00052f6
commit 25185f8f1f

@ -6,14 +6,12 @@ services:
- docker - docker
# what to actually run # what to actually run
script: | script:
set -eu # always push
export PUSH=true # always push - export PUSH=true
# if this is a push to master build, also push latest # if this is a push to master build, also push latest
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then - if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then export PUSH=latest; fi
export PUSH=latest # log into quay.io so we can push
fi - echo "$QUAY_PASSWORD" | docker login quay.io -u "$QUAY_USER" --password-stdin
# log into quay.io so we can push # build and push all components
echo "$QUAY_PASSWORD" | docker login quay.io -u "$QUAY_USER" --password-stdin - ./build
# build and push all components
./build

Loading…
Cancel
Save