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

Enhance container image labels for ArtifactHub #639

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

developer-guy
Copy link
Contributor

@developer-guy developer-guy commented Feb 22, 2022

Signed-off-by: Batuhan Apaydın [email protected]

Fixes #613

@developer-guy
Copy link
Contributor Author

developer-guy commented Feb 22, 2022

cc: @luhring @dirien

.goreleaser.yaml Outdated
Comment on lines 109 to 112
- "--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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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?

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so, yes 🙋🏻‍♂️

Copy link
Contributor Author

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

Copy link

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!

@kzantow
Copy link
Contributor

kzantow commented Feb 23, 2022

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 ?

@developer-guy
Copy link
Contributor Author

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 🙋🏻‍♂️❤️

Copy link
Contributor

@wagoodman wagoodman left a 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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add grype image to ArtifactHub
4 participants