zuul-jobs/roles/ensure-quay-repo/README.rst
Clark Boylan 58f408cfac Update ensure-quay-repo to run opportunistically
This updates the new ensure-quay-repo to run opportunistically if the
registry_type image flag is set to quay and the registry credentials
matching the container image has an api token defined. This will allow
us to include this role in base jobs and it will do what we need it to
do without impacting docker based images or quay managed images that
don't need automatic creation.

Change-Id: Ia419578bf0a27293757c5f723873e9930ee2c489
2023-04-26 08:45:50 -07:00

2.4 KiB

This role primarily exists to create a new public repository in quay. This role can be used to create private repos as well, but repos are created by default in quay if you simply push to them.

Users of this role will need to generate an application token with create repository permissions. Additional permissions are not necessary.

When invoking this role you should set no_log: true on the include_role task to prevent disclosure of your token.

** Role Variables **