I used the GitLab Generic Package Registry to publish CI-built binaries. On the overview page (
…/packages/2), they appear with the version and file name. The download link, however, is like
gitlab.example.com/user/project/-/package_files/3/download for the amd64 binary, and
…/4/download for the arm binary.
As I want to grab a certain version for the right platform in my configuration management, I need a URL where I can insert the version and the platform (i.e., filename). This is possible via the API, but only for authenticated clients. This is a public project, however, so anyone should be able to get the download link. The information is already public, but parsing the web page of course isn’t the right way.
So, am I missing something or is there no good way to do this?