Skip to content
Snippets Groups Projects
Unverified Commit 0d1296e4 authored by Timo Furrer's avatar Timo Furrer
Browse files

Improve self-managed mirror docs in README

parent 5258817a
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment