zuul-jobs/playbooks/docker-image/credentials.rst
James E. Blair 2b7689ba00 Add docker image build jobs
These are generic docker image build and upload jobs which use
the recently added roles of the same names.  With the new
pass-to-parent feature, child jobs can add their own credentials
to these jobs.

Change-Id: I669a9e6616a031837adab8c5c5806431fcca2150
2019-01-22 09:02:44 -08:00

23 lines
594 B
ReStructuredText

.. zuul:jobvar:: docker_credentials
:type: dict
This is expected to be a Zuul Secret with these keys:
.. zuul:jobvar:: username
The Docker Hub username.
.. zuul:jobvar:: password
The Docker Hub password.
.. zuul:jobvar:: repository
Optional; if supplied this is a regular expression which
restricts to what repositories the image may be uploaded. The
following example allows projects to upload images to
repositories within an organization based on their own names::
repository: "^myorgname/{{ zuul.project.short_name }}.*"