mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +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": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"matchDatasources": ["docker"],
|
"matchDatasources": ["docker"],
|
||||||
"matchPackagePatterns": ["^docker.io/.*)"],
|
"matchPackagePatterns": ["^docker\\.io/.+"],
|
||||||
"replacementNameTemplate": "{{{replace 'docker.io/' 'ghcr.io/' packageName}}}"
|
"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",
|
"description": "official images",
|
||||||
"matchDatasources": ["docker"],
|
"matchDatasources": ["docker"],
|
||||||
"matchPackagePatterns": ["^[a-z-]+(:|$).*"],
|
"matchPackagePatterns": ["^[a-z-]+$"],
|
||||||
"replacementNameTemplate": "some.registry.org/library/{{{packageName}}}"
|
"replacementNameTemplate": "some.registry.org/library/{{{packageName}}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "non-official images",
|
"description": "non-official images",
|
||||||
"matchDatasources": ["docker"],
|
"matchDatasources": ["docker"],
|
||||||
"matchPackagePatterns": ["^[a-z-]+\\/[a-z-]+(:|$).*"],
|
"matchPackagePatterns": ["^[a-z-]+/[a-z-]+$"],
|
||||||
"replacementNameTemplate": "some.registry.org/{{{packageName}}}"
|
"replacementNameTemplate": "some.registry.org/{{{packageName}}}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue