GitLab:PackageRegistry
GitLab Generic Packages Repository
Attribute | Type | Required | Description |
id | integer/string | yes | The ID or URL-encoded path of the project. |
package_name | string | yes | The package name. It can contain only lowercase letters ( |
package_version | string | yes | The package version. The following regex validates this: |
file_name | string | yes | The filename. It can contain only lowercase letters ( |
status | string | no | The package status. It can be |
select | string | no | The response payload. By default, the response is empty. Valid values are: |
Example
Example request using a personal access token:
curl --header "PRIVATE-TOKEN: <your_access_token>" \
--upload-file path/to/file.txt \
"https://gitlab.example.com/api/v4/projects/24/packages/generic/my_package/0.0.1/file.txt"
Example response without attribute select:
How To Upload Private Python Packages to Gitlab
GitLabCI:Python#How To Upload Private Python Packages to Gitlab 항목 참조.
NPM Deploy
GitLabCI:Npm#NPM Deploy 항목 참조.