zuul-jobs/playbooks/container-image/credentials.rst
James E. Blair 466aa92635 Add container build jobs
These jobs use the container build roles.

Change-Id: I13d1987980bc3d0b1c717878a4bc47edc6dcfe1c
2023-03-23 09:47:49 -07:00

41 lines
1.1 KiB
ReStructuredText

.. zuul:jobvar:: container_registry_credentials
:type: dict
This is only required for the upload and promote roles. This is
expected to be a Zuul Secret in dictionary form. Each key is the
name of a registry, and its value a dictionary with information
about that registry.
Example:
.. code-block:: yaml
container_registry_credentials:
quay.io:
username: foo
password: bar
.. zuul:jobvar:: [registry name]
:type: dict
Information about a registry. The key is the registry name, and
its value a dict as follows:
.. zuul:jobvar:: username
The registry username.
.. zuul:jobvar:: password
The registry password.
.. zuul:jobvar:: repository
Optional; if supplied this is a regular expression which
restricts to what repositories the image may be uploaded.
The registry name should be included. The following example
allows projects to upload images to repositories within an
organization based on their own names::
repository: "^quay.io/myorgname/{{ zuul.project.short_name }}.*"