debian-koji-osbuild/plugins
Tomas Hozza f21a2de39b Hub: support image_type being an array for backwards compatibility
The support for specifying multiple `image_types` for a single compose
has been removed by [1]. This turned out to be problematic, because e.g.
Pungi uses the array type when triggering image builds via osbuild.

Bring back the support for specifying the `image_type` as an array, but
restrict it to a single item. This will cover the Pungi use-case, since
it is always passing a single `image_type` in the array. The array is
then converted to a string in the Hub plugin and passed as such to the
Builder plugin.

Extend unit tests covering the introduced compatibility layer.

[1] c725265081
2022-09-02 15:15:21 +02:00
..
builder Support specifying upload options for image builds 2022-08-31 13:13:24 +02:00
cli Support specifying upload options for image builds 2022-08-31 13:13:24 +02:00
hub Hub: support image_type being an array for backwards compatibility 2022-09-02 15:15:21 +02:00