Skip to content

Commit

Permalink
hack: fix --push option to build-image
Browse files Browse the repository at this point in the history
Late in the development of `build-image` I made additional_tags a list
of tuples rather than a list of strings in order to make filtering
simpler but `push` function was never updated to match. This quick
fix gets `--push` mode working again.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
  • Loading branch information
phlogistonjohn authored and mergify[bot] committed Jul 25, 2023
1 parent 54f1dad commit 193bfe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/build-image
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def push(cli, target):
build(cli, target)

push_name = target.image_name()
for tag in target.additional_tags:
for tag, _ in target.additional_tags:
if tag in ("latest", "nightly"):
push_name = target.image_name(tag=tag)
break
Expand Down

0 comments on commit 193bfe8

Please sign in to comment.