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

Support Links #154

Closed
vegaed opened this issue Jun 26, 2020 · 6 comments
Closed

Support Links #154

vegaed opened this issue Jun 26, 2020 · 6 comments
Labels

Comments

@vegaed
Copy link

vegaed commented Jun 26, 2020

Would like the ability to add links to the release. https://docs.gitlab.com/ee/user/project/releases/#links. Want to link to the produced docker image in the container registry.

@jeremypetit-grtgaz
Copy link

I'm also interested in that feature for docker images and other packages (maven,npm...)

@jeff-cook
Copy link

I think what you are looking for is assets in the configuration. https://github.com/semantic-release/gitlab#usage

@vegaed
Copy link
Author

vegaed commented Aug 13, 2020

@jeff-cook I really dont want to have to export my docker images to have it included in the release. Also docker images can be quite large. Hence why I just want a link, which gitlab supports.

@jeff-cook
Copy link

I see. In reality all the assets in the release are just links.

Would need to add an assets:url option and not upload the file.

Possible work around: You could add to the description for the release. Not sure if that would be in the gitlab plugin or a different plugin.

@lukasmrtvy
Copy link

lukasmrtvy commented Mar 6, 2021

I would like to see a full API support https://docs.gitlab.com/ee/api/releases/#create-a-release

My use case ( example pipeline ):

  • create jar
  • upload jar to external maven repository ( not to Gitlab )
  • create docker image
  • upload image to external docker registry ( not to Gitlab )
  • create release ( create url reference links with proper links:type atributes to artifacts created in pipeline )

So whole POST looks like:

curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: <your_access_token>" \
     --data '{ "name": "New release", "tag_name": "v0.3", "description": "Super nice release. Additional info generated by pipeline: \"$FOOTER_DESCRIPTION\"", "assets": { "links": [{ "name": "foo", "url": "https://maven-repository/foo.jar", "link_type":"package" },{ "name": "bar", "url": "https://docker-registry/bar", "link_type":"image" }] } }' \
     --request POST "https://gitlab.example.com/api/v4/projects/24/releases"

Also something like $FOOTER_DESCRIPTION to add additional info to release description would be great.

Related: #161 ( duplicate )
Related: #167

@github-actions
Copy link

🎉 This issue has been resolved in version 9.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

4 participants