Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Make Travis push the images to the Docker hub if the tests succeed #110

Closed
LuisAlejandro opened this issue Apr 28, 2016 · 2 comments
Closed

Comments

@LuisAlejandro
Copy link
Contributor

LuisAlejandro commented Apr 28, 2016

If #109 gets implemented, automated builds on the docker hub will need to be deprecated because a clone of a private repository will fail there. One solution to this problem could be to use Travis builds to push the images to hub.docker.com if they pass all tests (after #111 is done). This can be easily done by storing push credentials in the Travis encrypted tokens.

@LuisAlejandro
Copy link
Contributor Author

I've been implementing this feature on my personal images. Feel free to copy the implementation.

The relevant parts are:

This last step should probably check for ${TRAVIS_BRANCH} == master to avoid pushing unstable images from pull requests or other branches.

@moylop260
Copy link
Contributor

moylop260 commented Dec 22, 2016

Thanks!
We are using a new propagate option from hub.docker.com
If we have a image changed from repository then build image from docker hub and propagate the build of children images

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants