Refactor docker image task values
Due to an ansible upgrade, the docker_image tasks are currently failing. This was due to a change in ansible, several values were deprecated and moved/renamed. This change modifies the docker_image task definitions to be up-to-date with the latest ansible changes to fix the gate. Change-Id: I653cd55256426f8fac3fce2fed460a14aa6b1d37
This commit is contained in:
parent
9a3d79d4a4
commit
2537db07aa
@ -28,10 +28,12 @@
|
|||||||
block:
|
block:
|
||||||
- name: "Build base image for {{ item.name }}"
|
- name: "Build base image for {{ item.name }}"
|
||||||
docker_image:
|
docker_image:
|
||||||
path: "{{ loci_src_dir }}/dockerfiles/{{ item.name }}"
|
|
||||||
name: base
|
name: base
|
||||||
tag: "{{ item.name }}"
|
tag: "{{ item.name }}"
|
||||||
buildargs: "{{ item.buildargs.base }}"
|
source: build
|
||||||
|
build:
|
||||||
|
args: "{{ item.buildargs.base }}"
|
||||||
|
path: "{{ loci_src_dir }}/dockerfiles/{{ item.name }}"
|
||||||
with_items: "{{ distros }}"
|
with_items: "{{ distros }}"
|
||||||
when: *condition
|
when: *condition
|
||||||
|
|
||||||
@ -39,13 +41,15 @@
|
|||||||
block:
|
block:
|
||||||
- name: "Build requirements image for {{ item.name }}"
|
- name: "Build requirements image for {{ item.name }}"
|
||||||
docker_image:
|
docker_image:
|
||||||
path: "{{ loci_src_dir }}"
|
|
||||||
name: loci/requirements
|
name: loci/requirements
|
||||||
tag: "{{ item.release }}-{{ item.name }}"
|
tag: "{{ item.release }}-{{ item.name }}"
|
||||||
repository: 172.17.0.1:5000/loci/requirements
|
repository: 172.17.0.1:5000/loci/requirements
|
||||||
push: yes
|
push: yes
|
||||||
pull: False
|
source: build
|
||||||
buildargs: "{{ item.buildargs.requirements }}"
|
build:
|
||||||
|
args: "{{ item.buildargs.requirements }}"
|
||||||
|
path: "{{ loci_src_dir }}"
|
||||||
|
pull: no
|
||||||
with_items: "{{ distros }}"
|
with_items: "{{ distros }}"
|
||||||
when: *condition
|
when: *condition
|
||||||
|
|
||||||
@ -57,10 +61,12 @@
|
|||||||
block:
|
block:
|
||||||
- name: "Build {{ project }} image for {{ item.name }}"
|
- name: "Build {{ project }} image for {{ item.name }}"
|
||||||
docker_image:
|
docker_image:
|
||||||
path: "{{ loci_src_dir }}"
|
|
||||||
name: loci/{{ project }}
|
name: loci/{{ project }}
|
||||||
tag: "{{ item.release }}-{{ item.name }}"
|
tag: "{{ item.release }}-{{ item.name }}"
|
||||||
pull: False
|
source: build
|
||||||
buildargs: "{{ item.buildargs.project }}"
|
build:
|
||||||
|
args: "{{ item.buildargs.project }}"
|
||||||
|
path: "{{ loci_src_dir }}"
|
||||||
|
pull: no
|
||||||
with_items: "{{ distros }}"
|
with_items: "{{ distros }}"
|
||||||
when: *condition
|
when: *condition
|
||||||
|
Loading…
Reference in New Issue
Block a user