Run ensure-quay-repo in our base container jobs

This will ensure that properly defined container images are created in
quay registries for us. You need to do this out of band of the docker
push if you want the image repos to be public. The ensure-quay-repo role
should ignore images that don't have the correct metadata making this
safe for all container base jobs.

Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/881521
Change-Id: Ic358f5e2f44c2a1e02140f8c848fe352214ba65a
This commit is contained in:
Clark Boylan 2023-04-25 15:27:41 -07:00
parent baae244431
commit 3fc688b08d
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
- hosts: localhost
roles:
# This will create image repos in quay if the container_image
# entries and container_registry_credentials have the appropriate
# contents.
- ensure-quay-repo

View File

@ -259,6 +259,7 @@
.. include:: ../../playbooks/container-image/README.rst
.. include:: ../../playbooks/container-image/credentials.rst
pre-run: playbooks/container-image/pre-quay.yaml
post-run: playbooks/container-image/upload.yaml
- job:
@ -271,6 +272,7 @@
.. include:: ../../playbooks/container-image/README.rst
.. include:: ../../playbooks/container-image/credentials.rst
pre-run: playbooks/container-image/pre-quay.yaml
vars: *container_vars
- job: