<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 8, 2019 at 11:09 AM Leo Jia <<a href="mailto:ljia@redhat.com">ljia@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Openstack-infra team,<br><br>May I have a question for the zuul-jobs in this repo: <a href="https://opendev.org/opendev/base-jobs" target="_blank">https://opendev.org/opendev/base-jobs</a>. There is a Zuul job that uploads the image to docker hub by running this Ansible playbook base-jobs/playbooks/docker-image/upload.yaml. Inside the playbook, it uses an Ansible role called upload-docker-image, but I can't find this role in this repo or elsewhere. How does this playbook know where is the upload-docker-image role is and where can I find the detail implementation of this role? Because I would like to create a similar role that uploads the image to <a href="http://quay.io" target="_blank">quay.io</a>.<div><br></div></div></blockquote><div><br></div><div>The upload-docker-image role can be found in the zuul/zuul-jobs repo:</div><div><br></div><div>    <a href="https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/upload-docker-image">https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/upload-docker-image</a></div><div><br></div><div>That role is made available in the base job definition, specifically here:</div><div><br></div><div>    <a href="https://opendev.org/opendev/base-jobs/src/branch/master/zuul.yaml#L144">https://opendev.org/opendev/base-jobs/src/branch/master/zuul.yaml#L144</a></div><div><br></div><div>You can read more about the job.roles configuration directive here:</div><div><br></div><div>    <a href="https://zuul-ci.org/docs/zuul/user/config.html#attr-job.roles">https://zuul-ci.org/docs/zuul/user/config.html#attr-job.roles</a></div><div><br></div><div><br></div><div>-David</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>Thanks,</div><div>Leo</div></div>
_______________________________________________<br>
OpenStack-Infra mailing list<br>
<a href="mailto:OpenStack-Infra@lists.openstack.org" target="_blank">OpenStack-Infra@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra</a></blockquote></div></div></div></div></div>