-
Notifications
You must be signed in to change notification settings - Fork 571
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
Enhance container image labels for ArtifactHub #639
Conversation
.goreleaser.yaml
Outdated
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/anchore/grype/main/README.md" | ||
- "--label=io.artifacthub.package.logo-url=https://user-images.githubusercontent.com/5199289/136855393-d0a9eef9-ccf1-4e2b-9d7c-7aad16a567e5.png" | ||
- "--label=io.artifacthub.package.license=Apache-2.0" | ||
- "--label=org.opencontainers.image.description=A vulnerability scanner for container images and filesystems" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably link to https://github.com/anchore/grype#readme ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same for grype, I think this README file URL is for the ArtifactHub to be able to render the README, so, it is not for the end-users of grype, am I right @dirien?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that's interesting so reads GitHub flavored markdown?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, yes 🙋🏻♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because, @dirien have been worked for the GoReleaser project for the same purpose, see.
goreleaser/goreleaser#2830
https://artifacthub.io/packages/container/goreleaser/goreleaser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, thats true @developer-guy!
I got a little more info, it might be good to add these directly to the Dockerfile, as is done here: https://github.com/anchore/syft/blob/main/Dockerfile#L18-L26 this way it's all just done in one place, WDYT @developer-guy ? |
Yeah, definitely a good idea 🙋🏻♂️❤️ |
…mage in artifacthub Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
cb4f93c
to
9beabab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a heads up for the future, the logo link is brittle, but we haven't provided a better alternative so I think this is alright for now 👍
Signed-off-by: Batuhan Apaydın batuhan.apaydin@trendyol.com
Fixes #613