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
fe37570d
Unverified
Commit
fe37570d
authored
9 months ago
by
mptr
Committed by
mptr
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
docs: add renovate section
parent
f96ec737
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
+48
-0
48 additions, 0 deletions
.gitlab/README.md.template
README.md
+48
-0
48 additions, 0 deletions
README.md
with
96 additions
and
0 deletions
.gitlab/README.md.template
+
48
−
0
View file @
fe37570d
...
...
@@ -280,6 +280,54 @@ However, we cannot use the alternative `+` which would indicate build metadata
as we'd like.
See https://github.com/distribution/distribution/issues/1201*
### Using with Renovate
To keep the component versions up to date you could use [Renovate](https://docs.renovatebot.com/).
Renovate users who use the component input `opentofu_version` should include the following `extends`
so that the OpenTofu version is raised to a maximum of the version suitable for the component:
```json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>components/opentofu"],
...
}
```
(You may need to adjust the path to the `components/opentofu` to match your mirror.)
Fore more details refer to the [Renovate documentation](https://docs.renovatebot.com/config-presets/).
Some more example configurations for your `renovate.json`:
- Package Rule to update all CI-Components
```json
{
"matchFileNames": [
".gitlab-ci.yaml",
".gitlab-ci.yml",
"templates/**/*.yaml",
"templates/**/*.yml"
],
"groupName": "Pipeline",
"semanticCommitType": "ci",
"automerge": true
},
```
- Package rule to pin only `major.minor` versions:
```json
{
"matchManagers": ["gitlabci"],
"extractVersion": "^(?<version>\\d+\\.\\d+)"
},
```
- Package rule to target a specific component:
```json
{
"matchPackageNames": ["components/opentofu"],
"matchManagers": ["gitlabci"]
},
```
## Usage on self-managed
GitLab CI/CD components are not yet distributed and available on self-managed GitLab instances.
...
...
This diff is collapsed.
Click to expand it.
README.md
+
48
−
0
View file @
fe37570d
...
...
@@ -297,6 +297,54 @@ However, we cannot use the alternative `+` which would indicate build metadata
as we'd like.
See https://github.com/distribution/distribution/issues/1201
*
### Using with Renovate
To keep the component versions up to date you could use
[
Renovate
](
https://docs.renovatebot.com/
)
.
Renovate users who use the component input
`opentofu_version`
should include the following
`extends`
so that the OpenTofu version is raised to a maximum of the version suitable for the component:
```
json
{
"$schema"
:
"https://docs.renovatebot.com/renovate-schema.json"
,
"extends"
:
[
"local>components/opentofu"
],
...
}
```
(You may need to adjust the path to the
`components/opentofu`
to match your mirror.)
Fore more details refer to the
[
Renovate documentation
](
https://docs.renovatebot.com/config-presets/
)
.
Some more example configurations for your
`renovate.json`
:
-
Package Rule to update all CI-Components
```
json
{
"matchFileNames"
:
[
".gitlab-ci.yaml"
,
".gitlab-ci.yml"
,
"templates/**/*.yaml"
,
"templates/**/*.yml"
],
"groupName"
:
"Pipeline"
,
"semanticCommitType"
:
"ci"
,
"automerge"
:
true
}
,
```
-
Package rule to pin only
`major.minor`
versions:
```
json
{
"matchManagers"
:
[
"gitlabci"
],
"extractVersion"
:
"^(?<version>
\\
d+
\\
.
\\
d+)"
}
,
```
-
Package rule to target a specific component:
```
json
{
"matchPackageNames"
:
[
"components/opentofu"
],
"matchManagers"
:
[
"gitlabci"
]
}
,
```
## Usage on self-managed
GitLab CI/CD components are not yet distributed and available on self-managed GitLab instances.
...
...
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