Fix periodic image build jobs
Don't try to create change tag if zuul.change is not defined that is the case for periodic builds. Change-Id: I5a7e02caf0f502e90e0477daeee868bf06dfbb5c
This commit is contained in:
parent
be8308c7ac
commit
fc27907b98
@ -40,8 +40,10 @@
|
|||||||
--build-arg "ZUUL_SIBLINGS={{ item.siblings | join(' ') }}"
|
--build-arg "ZUUL_SIBLINGS={{ item.siblings | join(' ') }}"
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% for tag in item.tags | default(['latest']) -%}
|
{% for tag in item.tags | default(['latest']) -%}
|
||||||
--tag {{ item.repository }}:change_{{ zuul.change }}_{{ tag }}
|
{% if zuul.change | default(false) -%}
|
||||||
--tag {{ item.repository }}:{{ tag }}
|
--tag {{ item.repository }}:change_{{ zuul.change }}_{{ tag }}
|
||||||
|
{% endif -%}
|
||||||
|
--tag {{ item.repository }}:{{ tag }}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zuul_work_dir }}/{{ item.context }}"
|
chdir: "{{ zuul_work_dir }}/{{ item.context }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user