project-config/playbooks/container-image-pre.yaml
Radosław Piliszek a55cdb1ef3 Once again fix the previous commit
I also missed both the array parens. ;-(

Change-Id: If74cc4e0d42112b13e04325d3f7d1579f14f1f23
2023-12-11 19:36:28 +01:00

11 lines
373 B
YAML

- hosts: localhost
tasks:
- name: Verify repository naming scheme
when: |
not zj_image.repository | regex_search("".join(["^quay.io/", zuul.project.name, "\\b"]))
loop: "{{ container_images }}"
loop_control:
loop_var: zj_image
fail:
msg: "{{ zj_image.repository }} not permitted by ^quay.io/{{ zuul.project.name }}\\b"