docker-image-resource icon indicating copy to clipboard operation
docker-image-resource copied to clipboard

Add image labels to metadata

Open martinxsliu opened this issue 3 years ago • 0 comments

This PR adds the image's labels as a comma separated string to the version's metadata. Labels contain valuable metadata and in our case we encode information about the git commit that produced the image. This is useful information to display in the UI when viewing the build logs as well as the version list page when users they can use the labels to enable/disable/pin versions.

I have tested that the $labels variable contains the correct comma separated string when there are labels (see screenshot) and is an empty string when there are not.

image

martinxsliu avatar Jul 07 '21 23:07 martinxsliu