Fix promote cleanup

Change-Id: I1b639e5ed221301219f808a53dcb938cccefa019
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
Andrii Ostapenko 2020-09-28 16:58:19 -05:00
parent 08617aa7d8
commit a8084e54ef
No known key found for this signature in database
GPG Key ID: F3E83668DBB223B3

View File

@ -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: