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:
parent
baae244431
commit
3fc688b08d
6
playbooks/container-image/pre-quay.yaml
Normal file
6
playbooks/container-image/pre-quay.yaml
Normal 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
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user