build-docker-image: fix change prefix

This currently tags the image for the temporary container with
change_change_12345 (note extra change_).  I think this was just a
typo introduced with I8eb7d2baa24905e7aac51fce0b2f9b1f24f037f9, which
was updating the tags for periodic pipelines.

Change-Id: I0ce0e475e325907f9ecd46b86c7cc4a655f4a1d3
This commit is contained in:
Ian Wienand 2023-01-31 17:08:50 +11:00
parent 0075432566
commit dfc101c29b
No known key found for this signature in database

View File

@ -6,7 +6,7 @@
# them for the buildset registry if one is present.
- name: Set base docker build command
vars:
tag_prefix: "change_{{ ('change_' + zuul.change) if (zuul.change is defined) else zuul.pipeline }}_"
tag_prefix: "{{ ('change_' + zuul.change) if (zuul.change is defined) else zuul.pipeline }}_"
set_fact:
docker_buildx_command: >-
docker buildx build {{ zj_image.path | default('.') }} -f {{ zj_image.dockerfile | default(docker_dockerfile) }}