gitlab icon indicating copy to clipboard operation
gitlab copied to clipboard

Use GitLab generic packages repository for assets

Open walkafwalka opened this issue 5 years ago • 3 comments

The GitLab generic packages repository is more suited for storing assets related to releases.

And unlike the current project uploads API, the documentation explicitly states that the CI_JOB_TOKEN has access to the Packages API.

walkafwalka avatar Nov 20 '20 01:11 walkafwalka

@walkafwalka Thanks for this! I agree that the Generic Package Registry is a better fit. In fact, this is the direction GitLab itself is taking (see https://gitlab.com/gitlab-org/gitlab/-/issues/255271#note_453907441 and https://gitlab.com/gitlab-org/release-cli/-/issues/68).

I would suggest we wait until GitLab has landed on an specific approach and then updating this plugin to mirror its behavior.

nfriend avatar Dec 03 '20 13:12 nfriend

I think this has happened now: https://docs.gitlab.com/ee/user/project/releases/#use-a-generic-package-for-attaching-binaries

mikaelkaron avatar Jul 01 '21 16:07 mikaelkaron

I have also an error uploading file with size greater than 100Mb:

[semantic-release] [@semantic-release/gitlab] › ✖ An error occurred while uploading /builds/[...]/MyPackage-1.0.0-amd64.deb to the GitLab project uploads API: HTTPError: Response code 413 (Request Entity Too Large)

Can I try to post a PR?

mfoti avatar Dec 17 '21 11:12 mfoti

This is now possible, thanks to @JonasSchubert work in #343 🎉

fgreinacher avatar Feb 02 '23 19:02 fgreinacher