mirror of https://github.com/ekimekim/wubloader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
641 B
YAML
18 lines
641 B
YAML
# since everything's happening inside docker, use a generic base image
|
|
language: minimal
|
|
|
|
# enable docker
|
|
services:
|
|
- docker
|
|
|
|
# what to actually run
|
|
script:
|
|
# always push
|
|
- export PUSH=true
|
|
# 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. Try to pull and re-use layers from images for all parent commits.
|
|
- 'CACHE_FROM=$(git rev-list HEAD -n1 --parents | cut -d" " -f 2-) ./build'
|