I currently switched to Travis CI for automated build process, and after every successful build, the docker image is pushed to docker cloud with
latest tag (e.g. myusername/my-docker-image:latest)
On my resin repo, I have a simple dockerfile containing:
FROM myusername/my-docker-image:latest CMD /bin/bash
which is already pushed to resin git repo and resin has successfully built, downloaded, installed and run a container inside my device.
My problem is: everytime travis has done its building steps and push docker image to docker cloud, I need to notify resin to re-pull myusername/my-docker-image:latest again OR re-build the docker image again (without any cache). I’ve been looking for the solution on google, official docs… but it seems that no one has the same problem.
My current work around (based on this idea) is to modify my dockerfile to
FROM myusername/my-docker-image:latest ENV version 1.0 CMD /bin/bash
and bump version every time travis CI has done building docker image, to manually trigger resin to rebuild its image.
Any other more optimal solution, please ?