From e5e08f40b8741b507d74debee3b6e50a08576c4a Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 1 Jan 2019 12:13:12 -0800 Subject: [PATCH] Add .travis.yaml to set up CI Nothing fancy, just build the images and push them, and if it's a push to master then also build latest. --- .travis.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3bb6ba0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +# since everything's happening inside docker, use a generic base image +language: minimal + +# enable docker +services: +- docker + +# what to actually run +script: | + set -eu + export PUSH=true # always push + # if this is a push to master build, also push latest + if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then + export PUSH=latest + fi + # log into quay.io so we can push + echo "$QUAY_PASSWORD" | docker login quay.io -u "$QUAY_USER" --password-stdin + # build and push all components + ./build