From 35219e9af3a17d938d4f24e5c0c0641bd549c14f Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 4 May 2020 14:38:48 -0500 Subject: [PATCH] Don't pull and retag in buildx workflow We currently are pulling from br/repo/tag and then re-tagging to just repo/tag. But we have buildset registry in the mirrors list for docker, so we should just be able to pull directly from repo/tag to prime the local image cache and have everything just work. Change-Id: I4d73f10acfc84d94772b13e3be16790e661c7047 --- roles/build-docker-image/tasks/buildx.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/roles/build-docker-image/tasks/buildx.yaml b/roles/build-docker-image/tasks/buildx.yaml index 2e21d6063..1268b25e7 100644 --- a/roles/build-docker-image/tasks/buildx.yaml +++ b/roles/build-docker-image/tasks/buildx.yaml @@ -30,14 +30,7 @@ - name: Pull images from buildset registry command: >- - docker pull {{ buildset_registry_alias }}:{{ buildset_registry.port }}/{{ zj_image.repository }}:{{ zj_image_tag }} - loop: "{{ zj_image.tags | default(['latest']) }}" - loop_control: - loop_var: zj_image_tag - -- name: Tag image for local registry - command: >- - docker tag {{ buildset_registry_alias }}:{{ buildset_registry.port }}/{{ zj_image.repository }}:{{ zj_image_tag }} {{ zj_image.repository }}:{{ zj_image_tag }} + docker pull {{ zj_image.repository }}:{{ zj_image_tag }} loop: "{{ zj_image.tags | default(['latest']) }}" loop_control: loop_var: zj_image_tag