Define the GIST url and pipe some script to bash/sh
GIST=https://gist.githubusercontent.com/marcbachmann/16574ba8c614bb3b78614a351f324b86/raw/a7e17acc57938a047c093f560858e3b0a8e2c741
curl -s $GIST/script-name | bash
Upgrade to the latest docker and docker-compose version
install:
- GIST=https://gist.githubusercontent.com/marcbachmann/16574ba8c614bb3b78614a351f324b86/raw/a7e17acc57938a047c093f560858e3b0a8e2c741
- curl -s $GIST/update-docker-engine.sh | bash
Download your most recent build from the docker registry and use it as base image
install:
# preload existing container for caching
- IMAGE_TAG=livingdocs/editor:${TRAVIS_TAG:-$TRAVIS_BRANCH}
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" 1>/dev/null
- CACHED_IMAGE=$(curl -s $GIST/pull-docker-image.sh | bash -s $IMAGE_TAG livingdocs/editor:latest)
script:
- docker build --cache-from ${CACHED_IMAGE:-false} -t editor .
- docker tag editor livingdocs/editor:latest
- docker push livingdocs/editor
ip=$(curl -s $GIST/http-proxy-setup.sh | bash)
export HTTP_PROXY=http://$ip
export HTTPS_PROXY=https://$ip
curl -s $GIST/http-proxy-requests.sh | bash