CRON job to trigger daily build of ros2 images#348
CRON job to trigger daily build of ros2 images#348mikaelarguedas merged 4 commits intoosrf:masterfrom
Conversation
|
I see you've opted to have the docker engine in the CI build in image, instead of that of the automated registry. One reason in #312 that I opted to use the registry API to trigger the build was that it would subsequent trigger any automated repo build pointed at |
Oh right, it's definitely a potential downside, I havent tried it but I would expect dockerhub to trigger downstream repo only from successful automated builds (and not from image pushes). If we end up having to back to triggering them instead of pushing them, just saw that triggering |
Hmm, that was not what I've seen in the past, as this post_push hook was working when I setup the the docker hub repo settings. You triggered the docker_images/ros2/nightly/nightly/hooks/post_push Lines 1 to 4 in c857f6c |
|
Looks like the trigger api URL has migrated from I've updated the URL in the |
|
Also, looks like the github link to the This perhaps explains why my fork with the CircleCI cron job (using #312) triggering was ineffective while still correctly calling the API daily. |
It actually works, downstream repos get triggered when new mages are pushed 🎉. tested on this repo (unrelated to the push/build on dockerhub)Note that it works only with repos where the base image is explicitly set: One possible downside of this approach if that the build logs will not be on docker hub anymore. Not a big bummer though I also thought a bit about the triggering approach and a few questions come up compared to this github actions approach:
|
#350 fixes the build of the sros image |
17ec903 to
5e7437b
Compare
Signed-off-by: Mikael Arguedas <[email protected]>
|
Follow-up of offline discussion:
I'll let it run for a day or 2 before forcepushin the change to this branch |
Ok, I've just now disabled the CircleCI on my fork to check yours is working fine. |
5e7437b to
88e3569
Compare
👍 Seems to have ran successfully today. Regarding the implementation. I couldn't get curl to expand |
Signed-off-by: Mikael Arguedas <[email protected]>
|
Relevant secret added to this repo. This is now ready for review |
ruffsl
left a comment
There was a problem hiding this comment.
LGTM, just a nitpick that might help release the nightly images sooner together. If it gets complex for actions to have different cron job times for the two, then nevermind.
Signed-off-by: Mikael Arguedas <[email protected]>
Signed-off-by: Mikael Arguedas <[email protected]>


ros2 images have not been rebuilt since Dec 4th (20 days ago).
It was suggested in the past to have a cron job to trigger these builds daily to not rely on the currently flaky setup. The PR for it has been blocked for a while #312
This PR implements a cron job using Github Actions thus allowing us to use it without extra permissions given to a third party app.
How it compares to #312:
Leaving this in draft for a couple days the time it proves to run reliably at https://github.com/mikaelarguedas/docker_images/actions