Fix build-docker-image when using buildset_registry

This was incorrect ansible -- we need to run two commands here,
so let's just do it as two tasks.

Change-Id: I88c6382f7f41659217ae66f07d6e5d9db0bf3b38
This commit is contained in:
James E. Blair 2019-02-18 15:32:17 -08:00
parent c58e2a51dc
commit 8567dddf97

View File

@ -1,6 +1,11 @@
- name: Push tag to buildset registry
- name: Tag image for buildset registry
command: >-
docker tag {{ image.repository }}:{{ image_tag }} {{ buildset_registry.host }}:{{ buildset_registry.port }}/{{ image.repository }}:{{ image_tag }}
loop: "{{ image.tags | default(['latest']) }}"
loop_control:
loop_var: image_tag
- name: Push tag to buildset registry
command: >-
docker push {{ buildset_registry.host }}:{{ buildset_registry.port }}/{{ image.repository }}:{{ image_tag }}
loop: "{{ image.tags | default(['latest']) }}"
loop_control: