Migrate GitLab template to component

MSAL

Replace a GitLab template: include with a component: include, as recommended by GitLab's CI/CD Catalog migration guides.

org.openrewrite.gitlab.MigrateTemplateToComponent

Required

The name of the template to replace.

Name of the component to use instead.

Version of the component to add.

Optional

The set of inputs to provide to the component. Separate values with commas.

mod run . --recipe=org.openrewrite.gitlab.MigrateTemplateToComponent \ -P oldTemplate=Terraform/Base.latest.gitlab-ci.yml \ -P newComponent='$CI_SERVER_FQDN/components/opentofu/job-templates' \ -P version='~latest'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.