debian-forge-composer/docs/news/unreleased/worker-gcp-uploaded-object-meta.md
Tomas Hozza e698080bc7 GCP: Set image name as custom metadata on uploaded image object
Extend StorageObjectUpload() to allow setting custom metadata on the
uploaded object.

Modify worker's osbuild job implementation and GCP CLI upload tool to
set the chosen image name as a custom metadata on the uploaded object.
This will make it possible to connect Storage objects to specific
images.

Add News entry about image name being added as metadata to uploaded GCP
Storage object as part of worker job.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-03-15 16:48:40 +00:00

361 B

Worker: Set image name as custom metadata on the file uploaded to GCP Storage

Worker osbuild jobs with GCP upload target now set the chosen image name as custom metadata on the uploaded object. This makes finding the uploaded object using the image name possible. The behavior is useful mainly for cleaning up cloud resources in case of unexpected failures.