Files
openstack-helm-images/zuul.d/playbooks/_return-image.yml
Andrii Ostapenko 39f967781e Brings back post-review buildset registry based image testing
This commit brings back post-review image testing implemented using
buildset registry to remove necessity of pushing not tested images to
dockerhub.

Flow on post-review:
create buildset registy ->
build images and push to buildset registry ->
pause each upload job ->
run deployment against built images ->
upload images to dockerhub ->
promote images.

Current implementation does not use opendev-* parent jobs for both pre
and post-review to avoid pushing images to intermediate registry to save
up to 15 minutes on publishing.

Change-Id: I272cdd1bfc77f4b76998f96cd16606bb9e04b8b8
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2020-09-30 02:46:20 +00:00

15 lines
530 B
YAML

- name: Return artifact to Zuul
zuul_return:
data:
zuul:
artifacts:
- name: "{{ zj_image.repository }}:{{ zj_image_tag }}"
url: "docker://zuul-jobs.buildset-registry:{{ buildset_registry.port }}/{{ zj_image.repository }}:{{ zj_image_tag }}"
metadata:
type: container_image
repository: "{{ zj_image.repository }}"
tag: "{{ zj_image_tag }}"
loop: "{{ zj_image.tags | default(['latest']) }}"
loop_control:
loop_var: zj_image_tag