Update test playbook for testing loci images
To test images before publishing them we put them to the buildset registry and then update the images section in all values to point to this buildset registry. This PS replaces both (openstackhelm|loci)/* with the corresponding buildset image. Change-Id: Ie33ae8dd4f29746ff99cfc31962d924e12b62e1b
This commit is contained in:
parent
8e5ad85fd0
commit
f761e7bfdd
@ -51,7 +51,7 @@
|
|||||||
- name: Override proposed images from artifacts
|
- name: Override proposed images from artifacts
|
||||||
shell: >
|
shell: >
|
||||||
find {{ override_paths | join(" ") }} -type f -exec sed -Ei
|
find {{ override_paths | join(" ") }} -type f -exec sed -Ei
|
||||||
"s#['\"]?docker\.io/({{ repo }}):({{ tag }})['\"]?\$#{{ buildset_registry_alias }}:{{ buildset_registry.port }}/\1:\2#g" {} +
|
"s#['\"]?docker\.io/(openstackhelm|loci)/({{ repo }}):({{ tag }})['\"]?\$#{{ buildset_registry_alias }}:{{ buildset_registry.port }}/{{ repo_org }}/{{ repo }}:\3#g" {} +
|
||||||
loop: "{{ zuul.artifacts | default([]) }}"
|
loop: "{{ zuul.artifacts | default([]) }}"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ work_dir }}"
|
chdir: "{{ work_dir }}"
|
||||||
@ -60,7 +60,8 @@
|
|||||||
when: "'metadata' in zj_zuul_artifact and zj_zuul_artifact.metadata.type | default('') == 'container_image'"
|
when: "'metadata' in zj_zuul_artifact and zj_zuul_artifact.metadata.type | default('') == 'container_image'"
|
||||||
vars:
|
vars:
|
||||||
tag: "{{ zj_zuul_artifact.metadata.tag }}"
|
tag: "{{ zj_zuul_artifact.metadata.tag }}"
|
||||||
repo: "{{ zj_zuul_artifact.metadata.repository }}"
|
repo_org: "{{ zj_zuul_artifact.metadata.repository | dirname }}"
|
||||||
|
repo: "{{ zj_zuul_artifact.metadata.repository | basename }}"
|
||||||
override_paths:
|
override_paths:
|
||||||
- ../openstack-helm*/*/values*
|
- ../openstack-helm*/*/values*
|
||||||
- ../openstack-helm-infra/tools/deployment/
|
- ../openstack-helm-infra/tools/deployment/
|
||||||
|
Loading…
Reference in New Issue
Block a user