Browse Source

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
changes/50/637650/1
James E. Blair 3 months ago
parent
commit
8567dddf97
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      roles/build-docker-image/tasks/push.yaml

+ 6
- 1
roles/build-docker-image/tasks/push.yaml View File

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

Loading…
Cancel
Save