main: add upload support directly to build

This commit adds support to upload the build image directly to
the target cloud. Currently only ami/AWS is supported.

If the cloud specific configuration is given at the commandline
and the image type is a cloud image the cloud upload will happen
automatically (just like with bib). Incomplete upload config is
an error.
This commit is contained in:
Michael Vogt 2025-02-03 21:41:53 +01:00
parent e41377b82a
commit 25f21a3205
7 changed files with 437 additions and 133 deletions

View file

@ -114,6 +114,22 @@ It is possible to generate spdx based SBOM (software bill of materials)
documents as part of the build. Just pass `--with-sbom` and
it will put them into the output directory.
### Cloud integration
When building an image type that can be uploaded to the cloud
(e.g. an "ami") image-builder will automatically upload if
all cloud parameters are provided, e.g.
```
$ image-builder build ami --distro centos-9 \
--aws-region us-east-1 \
--aws-bucket example-bucket \
--aws-ami-name my-image-1
```
Images can also be uploaded with the `image-builder upload` command
after they are built.
### Filtering
When listing images, it is possible to filter: