Fix image push

Change-Id: I5bb674f4ce5752d37cac74aed6f97fba21ba3e0d
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
Andrii Ostapenko 2020-07-03 10:03:14 -05:00 committed by Andrii Ostapenko
parent d910229ce9
commit d41750aa03
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
block:
- command: docker login -u {{ loci_docker_login.user }} -p {{ loci_docker_login.password }}
no_log: True
- command: docker push loci/{{ project }}:{{ branch }}-{{ item.name }}
- command: docker push loci/{{ project }}:{{ item.release }}-{{ item.name }}
with_items: "{{ distros }}"
when: &condition >
supported_releases is undefined or
@ -16,9 +16,9 @@
block:
- command: docker login -u {{ loci_docker_login.user }} -p {{ loci_docker_login.password }} quay.io
no_log: True
- command: docker tag loci/{{ project }}:{{ branch }}-{{ item.name }} quay.io/loci/{{ project }}:{{ branch }}-{{ item.name }}
- command: docker tag loci/{{ project }}:{{ item.release }}-{{ item.name }} quay.io/loci/{{ project }}:{{ item.release }}-{{ item.name }}
with_items: "{{ distros }}"
when: *condition
- command: docker push quay.io/loci/{{ project }}:{{ branch }}-{{ item.name }}
- command: docker push quay.io/loci/{{ project }}:{{ item.release }}-{{ item.name }}
with_items: "{{ distros }}"
when: *condition