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:
parent
c58e2a51dc
commit
8567dddf97
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user