diff --git a/.gitlab/README.md.template b/.gitlab/README.md.template index f090138930f7c339d4d73a34478cf7752c21b502..03983f98a09d48b8f300f6f8035fa0682725b5ee 100644 --- a/.gitlab/README.md.template +++ b/.gitlab/README.md.template @@ -266,21 +266,14 @@ It's also not possible to just include CI/CD components across instance, thus an self-managed instance. However, you could mirror this project from GitLab.com onto any self-managed instance using a [repository pull mirror](https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html). -and then use the component as you would from GitLab.com, but change the domain, like so: -```yaml -include: - - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/full-pipeline@<VERSION> - inputs: - ... -``` - -This example assumes your GitLab instance is hosted on `gitlab.example.com` and this component -project is mirrored in the `components/opentofu` project. If the component is being mirrored to another path than `components/opentofu`, then you also need to change that path in the `include:component` and additionally provide the correct `image_registry_base` input. +See also the official GitLab documentation for it +[here](https://docs.gitlab.com/ee/ci/components/#use-a-gitlabcom-component-in-a-self-managed-instance). + ## Migrating from the Terraform CI/CD templates When migrating from the GitLab Terraform CI/CD templates you can use the following migration rules: diff --git a/README.md b/README.md index 7255c01a980e14cc64f23c18415199ed51a227e6..a6f8592f5cf1839f3c40bb8887d92d799eb7f8d3 100644 --- a/README.md +++ b/README.md @@ -291,21 +291,14 @@ It's also not possible to just include CI/CD components across instance, thus an self-managed instance. However, you could mirror this project from GitLab.com onto any self-managed instance using a [repository pull mirror](https://docs.gitlab.com/ee/user/project/repository/mirror/pull.html). -and then use the component as you would from GitLab.com, but change the domain, like so: -```yaml -include: - - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/full-pipeline@<VERSION> - inputs: - ... -``` - -This example assumes your GitLab instance is hosted on `gitlab.example.com` and this component -project is mirrored in the `components/opentofu` project. If the component is being mirrored to another path than `components/opentofu`, then you also need to change that path in the `include:component` and additionally provide the correct `image_registry_base` input. +See also the official GitLab documentation for it +[here](https://docs.gitlab.com/ee/ci/components/#use-a-gitlabcom-component-in-a-self-managed-instance). + ## Migrating from the Terraform CI/CD templates When migrating from the GitLab Terraform CI/CD templates you can use the following migration rules: