Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
346576a3
Commit
346576a3
authored
Jan 21, 2021
by
Suzanne Selhorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to match matrix
Related to:
https://gitlab.com/gitlab-org/gitlab/-/issues/289937
parent
8f35d011
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
doc/user/packages/conan_repository/index.md
doc/user/packages/conan_repository/index.md
+18
-8
No files found.
doc/user/packages/conan_repository/index.md
View file @
346576a3
...
...
@@ -98,7 +98,8 @@ For more details about creating and managing Conan packages, see the
## Add the Package Registry as a Conan remote
To run
`conan`
commands, you must add the Package Registry as a Conan remote for
your project or instance.
your project or instance. Then you can publish packages to
and install packages from the Package Registry.
### Add a remote for your project
...
...
@@ -170,13 +171,13 @@ convention.
## Authenticate to the Package Registry
To authenticate to the Package Registry, you need either a personal access token
or deploy token.
To authenticate to the Package Registry, you need one of the following:
-
If you use a
[
personal access token
](
../../../user/profile/personal_access_tokens.md
)
,
set the scope to
`api`
.
-
If you use a
[
deploy token
](
../../project/deploy_tokens/index.md
)
, set the
scope to
`read_package_registry`
,
`write_package_registry`
, or both.
-
A
[
personal access token
](
../../../user/profile/personal_access_tokens.md
)
with the scope set to
`api`
.
-
A
[
deploy token
](
../../project/deploy_tokens/index.md
)
with the
scope set to
`read_package_registry`
,
`write_package_registry`
, or both.
-
A
[
CI job token
](
#publish-a-conan-package-by-using-cicd
)
.
### Add your credentials to the GitLab remote
...
...
@@ -278,10 +279,19 @@ create_package:
Additional Conan images to use as the basis of your CI file are available in the
[
Conan docs
](
https://docs.conan.io/en/latest/howtos/run_conan_in_docker.html#available-docker-images
)
.
### Re-publishing a package with the same recipe
When you publish a package that has the same recipe (
`package-name/version@user/channel`
)
as an existing package, the duplicate files are uploaded successfully and
are accessible through the UI. However, when the package is installed,
only the most recently-published package is returned.
## Install a Conan package
Install a Conan package from the Package Registry so you can use it as a
dependency.
dependency. You can install a package from the scope of your instance or your project.
If multiple packages have the same recipe, when you install
a package, the most recently-published package is retrieved.
WARNING:
Project-level packages
[
cannot be downloaded currently
](
https://gitlab.com/gitlab-org/gitlab/-/issues/270129
)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment