docker-image-resource
docker-image-resource copied to clipboard
Add image labels to metadata
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.