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:
Gage Hugo 2022-07-25 08:22:56 -05:00
parent 9a3d79d4a4
commit 2537db07aa
1 changed files with 14 additions and 8 deletions

View File

@ -28,10 +28,12 @@
block:
- name: "Build base image for {{ item.name }}"
docker_image:
path: "{{ loci_src_dir }}/dockerfiles/{{ item.name }}"
name: base
tag: "{{ item.name }}"
buildargs: "{{ item.buildargs.base }}"
source: build
build:
args: "{{ item.buildargs.base }}"
path: "{{ loci_src_dir }}/dockerfiles/{{ item.name }}"
with_items: "{{ distros }}"
when: *condition
@ -39,13 +41,15 @@
block:
- name: "Build requirements image for {{ item.name }}"
docker_image:
path: "{{ loci_src_dir }}"
name: loci/requirements
tag: "{{ item.release }}-{{ item.name }}"
repository: 172.17.0.1:5000/loci/requirements
push: yes
pull: False
buildargs: "{{ item.buildargs.requirements }}"
source: build
build:
args: "{{ item.buildargs.requirements }}"
path: "{{ loci_src_dir }}"
pull: no
with_items: "{{ distros }}"
when: *condition
@ -57,10 +61,12 @@
block:
- name: "Build {{ project }} image for {{ item.name }}"
docker_image:
path: "{{ loci_src_dir }}"
name: loci/{{ project }}
tag: "{{ item.release }}-{{ item.name }}"
pull: False
buildargs: "{{ item.buildargs.project }}"
source: build
build:
args: "{{ item.buildargs.project }}"
path: "{{ loci_src_dir }}"
pull: no
with_items: "{{ distros }}"
when: *condition