debian-forge-composer/cmd
Tomas Hozza ff95059748 internal/upload: Add support for upload to GCP and CLI tool using it
Add new internal upload target for Google Cloud Platform and
osbuild-upload-gcp CLI tool which uses the API.

Supported features are:
- Authenticate with GCP using explicitly provided JSON credentials
  file or let the authentication be handled automatically by the
  Google cloud client library. The later is useful e.g. when the worker
  is running in GCP VM instance, which has associated permissions with
  it.
- Upload an existing image file into existing Storage bucket.
- Verify MD5 checksum of the uploaded image file against the local
  file's checksum.
- Import the uploaded image file into Compute Node as an Image.
- Delete the uploaded image file after a successful image import.
- Delete all cache files from storage created as part of the image
  import build job.
- Share the imported image with a list of specified accounts.

GCP-specific image type is not yet added, since GCP supports importing
VMDK and VHD images, which the osbuild-composer already supports.

Update go.mod, vendor/ content and SPEC file with new dependencies.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-02-25 18:44:21 +00:00
..
cloud-cleaner test: extract GenerateCIArtifactName to test helpers 2020-12-01 08:27:44 +01:00
osbuild-auth-tests test/auth: rework the test to use the new openssl setup 2020-11-05 13:48:48 +01:00
osbuild-composer distro/rhel84: add centos 8 stream support 2021-02-14 16:08:08 +00:00
osbuild-composer-cli-tests tests: rename composer-cli tests 2020-10-06 13:08:26 +02:00
osbuild-dnf-json-tests tree-wide: drop f31 support 2020-10-21 09:04:13 +02:00
osbuild-image-tests test/image: Fix test cases directory path in doc and code 2021-01-12 15:36:52 +01:00
osbuild-koji upload/koji: don't pass task_id to cg_init_build 2020-09-16 00:15:02 +01:00
osbuild-koji-tests test/koji: move the koji test to schutzbot 2020-11-02 19:59:28 +01:00
osbuild-pipeline distro/rhel84: add centos 8 stream support 2021-02-14 16:08:08 +00:00
osbuild-store-dump distro/rhel84: use a random uuid for XFS partition 2020-12-15 16:43:39 +01:00
osbuild-upload-aws upload/aws: fix architecture for aarch64 images 2020-12-01 08:27:44 +01:00
osbuild-upload-azure cmd/osbuild-upload-azure: improve error message on wrong arguments 2020-04-27 20:34:20 +02:00
osbuild-upload-gcp internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
osbuild-worker worker: keep output directory in /var/cache 2021-02-20 14:53:49 +01:00