Use CI to build the images
damien-carcel opened this issue · 2 comments
Description
Docker Hub is currently used to build the images. However, they are already build by the CI (Travis-CI as of now) to run the tests.
Once the tests are green and PR can be merged, the CI should be responsible to push the images right after the merge.
Prepare
- Put every image tags on master branch, in sub-directories => Issue #284
First phase - Testing
This needs to be first tested with a test Dockerfile and repository:
- to see how it can be done,
- to see if Travis-CI can be used or if we need to switch to another tool.
Second phase - Implementing
If first phase is conclusive:
- Deactivate Docker Hub builds
- Use the CI to push the images on Docker Hub
@damien-carcel First phase also done here, isn't it?
Hey @stefandoorn.
No, it is not done yet. We know TravisCI can build the images. What we need to test is to push the builded images to Docker Hub (instead of building them with Travis to run the tests, then build them again with Docker Hub once the PR is merged).
What's more, we recently switch to Circle CI for Akeneo PIM. It could be interesting to test is as well, as it is more advanced than Travis regarding Docker usage.