zuul-jobs/roles/promote-docker-image
Ian Wienand 1c85809ab1
promote-docker-image: double-quote regexes
Change Ibc84e4f3fb18331ff6e2eb01037254be65dc53f5 removed the {{ from
this, which Ansible does warn about.  However it then started failing.

Upon local testing, I could see

 The conditional check 'ansible_date_time.iso8601 |
 regex_replace('^(....-..-..)T(..:..:..).*Z', '\\1 \\2') |
 to_datetime' failed. The error was: time data '\\x01 \\x02' does not
 match format '%Y-%m-%d %H:%M:%S

So for whatever reason, without the surrounding {{ }} the
regex_replace is getting turned into the string "\\1 \\2" -- not the
first and second results of the match.  Double quoting seems to fix
this.

Change-Id: I689385a3eb8b9ce373ff579c72cd29e46ebcaf8b
2023-02-08 07:27:47 +11:00
..
defaults Add docker image promotion roles 2019-01-15 14:03:00 -08:00
tasks promote-docker-image: double-quote regexes 2023-02-08 07:27:47 +11:00
README.rst Add docker image promotion roles 2019-01-15 14:03:00 -08:00

Promote one or more previously uploaded docker images.