Move containerfile setting in container build
When setting the containerfile variable, we need to be inside the zk_images loop in order to set the correct default for each image. Change-Id: I216ffd19dd797752b2e5ca2332e651b8e6ac8a3c
This commit is contained in:
parent
f381cc328b
commit
2c6bc6d7a3
@ -1,3 +1,7 @@
|
|||||||
|
- name: Set container filename arg
|
||||||
|
set_fact:
|
||||||
|
containerfile: "{{ zj_image.container_filename | default(container_filename) | default('') }}"
|
||||||
|
|
||||||
- name: Set up siblings
|
- name: Set up siblings
|
||||||
include_tasks: siblings.yaml
|
include_tasks: siblings.yaml
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
_repopath: "{{ (zj_image.repository | split('/', 1)).1 }}"
|
_repopath: "{{ (zj_image.repository | split('/', 1)).1 }}"
|
||||||
|
|
||||||
|
- name: Set container filename arg
|
||||||
|
set_fact:
|
||||||
|
containerfile: "{{ zj_image.container_filename | default(container_filename) | default('') }}"
|
||||||
|
|
||||||
- name: Set up siblings
|
- name: Set up siblings
|
||||||
include_tasks: siblings.yaml
|
include_tasks: siblings.yaml
|
||||||
|
|
||||||
|
@ -38,10 +38,6 @@
|
|||||||
buildset_registry_alias: "{{ buildset_registry.host }}"
|
buildset_registry_alias: "{{ buildset_registry.host }}"
|
||||||
when: buildset_registry is defined and not ( buildset_registry.host | ipaddr )
|
when: buildset_registry is defined and not ( buildset_registry.host | ipaddr )
|
||||||
|
|
||||||
- name: Set container filename arg
|
|
||||||
set_fact:
|
|
||||||
containerfile: "{{ zj_image.container_filename | default(container_filename) | default('') }}"
|
|
||||||
|
|
||||||
- name: Determine if we are building multiarch or not
|
- name: Determine if we are building multiarch or not
|
||||||
set_fact:
|
set_fact:
|
||||||
_multiarch: "{{ container_images | selectattr('arch', 'defined') | list }}"
|
_multiarch: "{{ container_images | selectattr('arch', 'defined') | list }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user