Docs: Fix precedence of `registries` list

This commit is contained in:
Henry Mercer 2022-06-30 17:32:00 +01:00
Родитель 3bb51c2643
Коммит 92a9738bd5
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -90,10 +90,13 @@ For example, the following ``qlconfig.yml`` file associates all packs with the C
.. code-block:: yaml
registries:
- packages: '*'
url: https://containers.GHE_HOSTNAME/v2/
- packages: 'codeql/*'
url: https://ghcr.io/v2/
- packages: '*'
url: https://containers.GHE_HOSTNAME/v2/
The CodeQL CLI will determine which registry to use for a given package name by finding the first item in the ``registries`` list with a ``packages`` property that matches that package name.
This means that you'll generally want to define the most specific package name patterns first.
You can now use ``codeql pack publish``, ``codeql pack download``, and ``codeql database analyze`` to manage packs on GitHub Enterprise Server.