Fix promote cleanup
Change-Id: I1b639e5ed221301219f808a53dcb938cccefa019 Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
parent
08617aa7d8
commit
a8084e54ef
@ -9,7 +9,7 @@
|
||||
loop_control:
|
||||
loop_var: zj_docker_tag
|
||||
when:
|
||||
- zj_docker_tag.name.startswith('change_') or zj_docker_tag.name.startswith(zuul.pipeline))
|
||||
- zj_docker_tag.name.startswith('change_') or zj_docker_tag.name.startswith(zuul.pipeline)
|
||||
# Was updated > 24 hours ago:
|
||||
- "{{ ((ansible_date_time.iso8601 | regex_replace('^(....-..-..)T(..:..:..).*Z', '\\1 \\2') | to_datetime) - (zj_docker_tag.last_updated | regex_replace('^(....-..-..)T(..:..:..).*Z', '\\1 \\2') | to_datetime)).seconds > 86400 }}"
|
||||
uri:
|
||||
|
Loading…
Reference in New Issue
Block a user