Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add OCI container labels on release builds #120

Merged

Conversation

SISheogorath
Copy link
Member

This patch introduces the OCI labels to release builds. It utilises
GitHub's variables to fill in dynamic parts. One could also use GitLab
variables to do this, if wanted. The overall idea is to improve the
integration of the image with tools like renovate, which discover such
labels on images and automatically link to changelogs and alike.

References:
https://github.com/opencontainers/image-spec/blob/67d2d5658fe0476ab9bf414cec164077ebff3920/annotations.md
https://docs.github.com/en/actions/learn-github-actions/environment-variables
https://github.com/renovatebot/renovate/blob/70c030740540c69b599036c9b93e180c904614e6/lib/datasource/docker/index.ts#L266-L269

This patch introduces the OCI labels to release builds. It utilises
GitHub's variables to fill in dynamic parts. One could also use GitLab
variables to do this, if wanted. The overall idea is to improve the
integration of the image with tools like renovate, which discover such
labels on images and automatically link to changelogs and alike.

References:
https://github.com/opencontainers/image-spec/blob/67d2d5658fe0476ab9bf414cec164077ebff3920/annotations.md
https://docs.github.com/en/actions/learn-github-actions/environment-variables
https://github.com/renovatebot/renovate/blob/70c030740540c69b599036c9b93e180c904614e6/lib/datasource/docker/index.ts#L266-L269
@christophwitzko
Copy link
Member

Hi @SISheogorath, this is awesome. Thank you ☺️

@christophwitzko christophwitzko merged commit 3f3382f into go-semantic-release:master Dec 10, 2021
@SISheogorath SISheogorath deleted the feature/oci-labels branch December 10, 2021 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants