feat(preset): add containerbase replacements (#20941)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
This commit is contained in:
Michael Kriese 2023-03-15 12:47:10 +01:00 committed by GitHub
parent 25ea3d1864
commit 62e91aff40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ export const presets: Record<string, Preset> = {
extends: [ extends: [
'replacements:apollo-server-to-scoped', 'replacements:apollo-server-to-scoped',
'replacements:babel-eslint-to-eslint-parser', 'replacements:babel-eslint-to-eslint-parser',
'replacements:containerbase',
'replacements:cucumber-to-scoped', 'replacements:cucumber-to-scoped',
'replacements:fastify-to-scoped', 'replacements:fastify-to-scoped',
'replacements:hapi-to-scoped', 'replacements:hapi-to-scoped',
@ -104,6 +105,39 @@ export const presets: Record<string, Preset> = {
}, },
], ],
}, },
containerbase: {
description: 'Replace containerbase dependencies.',
packageRules: [
{
description:
'Replace `containerbase/buildpack` with `containerbase/base`.',
matchDatasources: ['docker'],
matchPackageNames: ['containerbase/buildpack'],
replacementName: 'containerbase/base',
},
{
description:
'Replace `docker.io/containerbase/buildpack` with `docker.io/containerbase/base`.',
matchDatasources: ['docker'],
matchPackageNames: ['docker.io/containerbase/buildpack'],
replacementName: 'docker.io/containerbase/base',
},
{
description:
'Replace `ghcr.io/containerbase/buildpack` with `ghcr.io/containerbase/base`.',
matchDatasources: ['docker'],
matchPackageNames: ['ghcr.io/containerbase/buildpack'],
replacementName: 'ghcr.io/containerbase/base',
},
{
description:
'Replace `renovatebot/internal-tools` with `containerbase/internal-tools`.',
matchDatasources: ['github-tags'],
matchPackageNames: ['renovatebot/internal-tools'],
replacementName: 'containerbase/internal-tools',
},
],
},
'cucumber-to-scoped': { 'cucumber-to-scoped': {
description: '`cucumber` became scoped.', description: '`cucumber` became scoped.',
packageRules: [ packageRules: [