mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
docs: fix replacementNameTemplate
samples (#21085)
This commit is contained in:
parent
326e0568b1
commit
7601eb3351
1 changed files with 4 additions and 4 deletions
|
@ -2231,8 +2231,8 @@ For example, the following package rule can be used to replace the registry for
|
|||
"packageRules": [
|
||||
{
|
||||
"matchDatasources": ["docker"],
|
||||
"matchPackagePatterns": ["^docker.io/.*)"],
|
||||
"replacementNameTemplate": "{{{replace 'docker.io/' 'ghcr.io/' packageName}}}"
|
||||
"matchPackagePatterns": ["^docker\\.io/.+"],
|
||||
"replacementNameTemplate": "{{{replace 'docker\\.io/' 'ghcr.io/' packageName}}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -2246,13 +2246,13 @@ Or, to add a registry prefix to any `docker` images that do not contain an expli
|
|||
{
|
||||
"description": "official images",
|
||||
"matchDatasources": ["docker"],
|
||||
"matchPackagePatterns": ["^[a-z-]+(:|$).*"],
|
||||
"matchPackagePatterns": ["^[a-z-]+$"],
|
||||
"replacementNameTemplate": "some.registry.org/library/{{{packageName}}}"
|
||||
},
|
||||
{
|
||||
"description": "non-official images",
|
||||
"matchDatasources": ["docker"],
|
||||
"matchPackagePatterns": ["^[a-z-]+\\/[a-z-]+(:|$).*"],
|
||||
"matchPackagePatterns": ["^[a-z-]+/[a-z-]+$"],
|
||||
"replacementNameTemplate": "some.registry.org/{{{packageName}}}"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue