Skip to content

Instantly share code, notes, and snippets.

@JayH5 JayH5/.travis.yml
Last active Jul 3, 2017

Embed
What would you like to do?
Travis Docker caching config
sudo: required
services:
- docker
env:
global:
- REGISTRY_USER=myrobot
# REGISTRY_PASS=...
- secret: "<something long>"
before_script:
- docker pull myorg/myimage || true
script:
- docker build --pull --cache-from myorg/myimage --tag myorg/myimage .
- docker run myorg/myimage
after_script:
- docker images
before_deploy:
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
deploy:
provider: script
script: docker push myorg/myimage
on:
branch: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.