Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenTofu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
components
OpenTofu
Commits
0d1296e4
Unverified
Commit
0d1296e4
authored
1 year ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Improve self-managed mirror docs in README
parent
5258817a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab/README.md.template
+3
-10
3 additions, 10 deletions
.gitlab/README.md.template
README.md
+3
-10
3 additions, 10 deletions
README.md
with
6 additions
and
20 deletions
.gitlab/README.md.template
+
3
−
10
View file @
0d1296e4
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
README.md
+
3
−
10
View file @
0d1296e4
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment