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
cfbd6769
Unverified
Commit
cfbd6769
authored
1 year ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Document usage on self-managed
parent
d3154cae
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
+21
-0
21 additions, 0 deletions
.gitlab/README.md.template
README.md
+21
-0
21 additions, 0 deletions
README.md
with
42 additions
and
0 deletions
.gitlab/README.md.template
+
21
−
0
View file @
cfbd6769
...
@@ -149,6 +149,27 @@ However, we cannot use the alternative `+` which would indicate build metadata
...
@@ -149,6 +149,27 @@ However, we cannot use the alternative `+` which would indicate build metadata
as we'd like.
as we'd like.
See https://github.com/distribution/distribution/issues/1201*
See https://github.com/distribution/distribution/issues/1201*
## Usage on self-managed
GitLab CI/CD components are not yet distributed and available on self-managed GitLab instances.
(see details [here](https://gitlab.com/gitlab-org/gitlab/-/issues/415638)).
It's also not possible to just include CI/CD components across instance, thus an include like
`- component: gitlab.com/components/opentofu/full-pipeline@~latest` won't work from a
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: gitlab.example.com/components/opentofu/full-pipeline@~latest
inputs:
...
```
This example assumes your GitLab instance is hosted on `gitlab.example.com` and this component
project is mirrored in the `components/opentofu` project.
## Contributing
## Contributing
See the [CONTRIBUTING.md](CONTRIBUTING.md) guide.
See the [CONTRIBUTING.md](CONTRIBUTING.md) guide.
This diff is collapsed.
Click to expand it.
README.md
+
21
−
0
View file @
cfbd6769
...
@@ -168,6 +168,27 @@ However, we cannot use the alternative `+` which would indicate build metadata
...
@@ -168,6 +168,27 @@ However, we cannot use the alternative `+` which would indicate build metadata
as we'd like.
as we'd like.
See https://github.com/distribution/distribution/issues/1201
*
See https://github.com/distribution/distribution/issues/1201
*
## Usage on self-managed
GitLab CI/CD components are not yet distributed and available on self-managed GitLab instances.
(see details
[
here
](
https://gitlab.com/gitlab-org/gitlab/-/issues/415638
)
).
It's also not possible to just include CI/CD components across instance, thus an include like
`- component: gitlab.com/components/opentofu/full-pipeline@~latest`
won't work from a
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
:
gitlab.example.com/components/opentofu/full-pipeline@~latest
inputs
:
...
```
This example assumes your GitLab instance is hosted on
`gitlab.example.com`
and this component
project is mirrored in the
`components/opentofu`
project.
## Contributing
## Contributing
See the
[
CONTRIBUTING.md
](
CONTRIBUTING.md
)
guide.
See the
[
CONTRIBUTING.md
](
CONTRIBUTING.md
)
guide.
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