From a8084e54ef42c608b30c8c9ab3267117964f15a3 Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Mon, 28 Sep 2020 16:58:19 -0500 Subject: [PATCH] Fix promote cleanup Change-Id: I1b639e5ed221301219f808a53dcb938cccefa019 Signed-off-by: Andrii Ostapenko --- roles/promote-docker-image/tasks/promote-cleanup.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/promote-docker-image/tasks/promote-cleanup.yaml b/roles/promote-docker-image/tasks/promote-cleanup.yaml index ba1470dbd..81b4cf98a 100644 --- a/roles/promote-docker-image/tasks/promote-cleanup.yaml +++ b/roles/promote-docker-image/tasks/promote-cleanup.yaml @@ -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: