Tag the images pulled back into docker for changes
When building normally we tag the images in docker, this lets upload push them. But in the buildx case, we tag them for the buildset registry but they never end up with change-specific tags on the docker host itself, so they can't be found by the upload playbook. Change-Id: I4f51df3ac67602fd2d48f66639bb0715e7b06cd3
This commit is contained in:
parent
b211a26d0b
commit
ce3136476a
@ -57,5 +57,13 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
loop_var: zj_image_tag
|
loop_var: zj_image_tag
|
||||||
|
|
||||||
|
- name: Locally tag for changes so push works later
|
||||||
|
command: >-
|
||||||
|
docker tag {{ zj_image.repository }}:{{ zj_image_tag }} {{ zj_image.repository }}:change_{{ zuul.change }}_{{ zj_image_tag }}
|
||||||
|
loop: "{{ zj_image.tags | default(['latest']) }}"
|
||||||
|
loop_control:
|
||||||
|
loop_var: zj_image_tag
|
||||||
|
when: zuul.change | default(false)
|
||||||
|
|
||||||
- name: Cleanup sibling source directory
|
- name: Cleanup sibling source directory
|
||||||
include_tasks: clean-siblings.yaml
|
include_tasks: clean-siblings.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user