Merge "Override images provided as artifacts from buildset registry"
This commit is contained in:
commit
b3cea56e55
@ -19,7 +19,7 @@
|
|||||||
- name: Override images
|
- name: Override images
|
||||||
include_role:
|
include_role:
|
||||||
name: override-images
|
name: override-images
|
||||||
when: docker_images is defined
|
when: buildset_registry is defined
|
||||||
- name: Use docker mirror
|
- name: Use docker mirror
|
||||||
include_role:
|
include_role:
|
||||||
name: use-docker-mirror
|
name: use-docker-mirror
|
||||||
|
@ -11,13 +11,30 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
---
|
---
|
||||||
- name: Create test images overrides
|
- name: Use buildset registry
|
||||||
|
include_role:
|
||||||
|
name: use-buildset-registry
|
||||||
|
|
||||||
|
- name: Print zuul
|
||||||
|
debug:
|
||||||
|
var: zuul
|
||||||
|
|
||||||
|
- name: Override proposed images from artifacts
|
||||||
shell: >
|
shell: >
|
||||||
find {{ work_dir }}/../openstack-helm*/*/values* -type f -exec sed -i
|
find {{ override_paths | join(" ") }} -type f -exec sed -Ei
|
||||||
's#\({{ item.repository }}\):\({{ item.tags[0] }}\)#\1:{{ prefix }}_\2#g' {} +
|
"s#['\"]?docker\.io/({{ repo }}):({{ tag }})['\"]?\$#{{ buildset_registry_alias }}:{{ buildset_registry.port }}/\1:\2#g" {} +
|
||||||
loop: "{{ docker_images }}"
|
loop: "{{ zuul.artifacts | default([]) }}"
|
||||||
|
args:
|
||||||
|
chdir: "{{ work_dir }}"
|
||||||
|
loop_control:
|
||||||
|
loop_var: zj_zuul_artifact
|
||||||
|
when: "'metadata' in zj_zuul_artifact and zj_zuul_artifact.metadata.type | default('') == 'container_image'"
|
||||||
vars:
|
vars:
|
||||||
prefix: "{{ zuul.change | default(false) | ternary('change_' + zuul.change, 'periodic') }}"
|
tag: "{{ zj_zuul_artifact.metadata.tag }}"
|
||||||
|
repo: "{{ zj_zuul_artifact.metadata.repository }}"
|
||||||
|
override_paths:
|
||||||
|
- ../openstack-helm*/*/values*
|
||||||
|
- ../openstack-helm-infra/tools/deployment/
|
||||||
|
|
||||||
- name: Diff
|
- name: Diff
|
||||||
shell: |
|
shell: |
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
: ${MINIKUBE_AIO:="docker.io/openstackhelm/minikube-aio:latest-ubuntu_bionic"}
|
MINIKUBE_AIO_DEFAULT="docker.io/openstackhelm/minikube-aio:latest-ubuntu_bionic"
|
||||||
|
: ${MINIKUBE_AIO:=${MINIKUBE_AIO_DEFAULT}}
|
||||||
|
|
||||||
export DEBCONF_NONINTERACTIVE_SEEN=true
|
export DEBCONF_NONINTERACTIVE_SEEN=true
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
Loading…
Reference in New Issue
Block a user