zuul-jobs/zuul.d/container-jobs.yaml
James E. Blair 4077fb8e8f Add mirror-container-images role and job
This adds a role (and job) to mirror container images from one
registry to another.

Also, disable the name[template] ansible-lint check because it
greatly reduces the utility of including templates in task names.

Change-Id: Id01295c51b67ffb7e98637c6cdcc4e7a14c92b22
2024-12-02 09:47:12 -08:00

42 lines
1.2 KiB
YAML

# Jobs listed in container-jobs.rst.
- job:
name: build-container-image
description: |
Build a container image.
.. include:: ../../playbooks/container-image/README.rst
pre-run: playbooks/container-image/pre.yaml
run: playbooks/container-image/run.yaml
- job:
name: upload-container-image
parent: build-container-image
description: |
Build and upload a container image.
.. include:: ../../playbooks/container-image/README.rst
.. include:: ../../playbooks/container-image/credentials.rst
post-run: playbooks/container-image/upload.yaml
- job:
name: promote-container-image
description: |
Retag a previously-uploaded container image.
.. include:: ../../playbooks/container-image/README.rst
.. include:: ../../playbooks/container-image/credentials.rst
run: playbooks/container-image/promote.yaml
nodeset:
nodes: []
- job:
name: mirror-container-images
description: |
Copy container images from one registry to another.
.. include:: ../../playbooks/container-image/README.rst
.. include:: ../../playbooks/container-image/credentials.rst
pre-run: playbooks/container-image/pre.yaml
run: playbooks/container-image/mirror.yaml