From 2537db07aa3a3836cd215281e2fe2aa7923706b0 Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Mon, 25 Jul 2022 08:22:56 -0500 Subject: [PATCH] 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 --- playbooks/loci-builder.yaml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/playbooks/loci-builder.yaml b/playbooks/loci-builder.yaml index bf3369f..538bbbe 100644 --- a/playbooks/loci-builder.yaml +++ b/playbooks/loci-builder.yaml @@ -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