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
638468c1
Unverified
Commit
638468c1
authored
1 year ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Add proper release notes
parent
e6a1e025
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-ci.yml
+8
-2
8 additions, 2 deletions
.gitlab-ci.yml
.gitlab/release-template.md
+26
-0
26 additions, 0 deletions
.gitlab/release-template.md
with
34 additions
and
2 deletions
.gitlab-ci.yml
+
8
−
2
View file @
638468c1
...
...
@@ -114,10 +114,16 @@ create-release:
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
rules
:
-
if
:
$CI_COMMIT_TAG =~ /\d+/
script
:
echo "Creating release $CI_COMMIT_TAG"
before_script
:
-
apk add --update yq envsubst
script
:
-
echo "Creating release $CI_COMMIT_TAG"
-
AVAILABLE_OPENTOFU_VERSIONS=$(yq -r '.spec.inputs.opentofu_version.options | .[] | "- [`" + . + "`](https://github.com/opentofu/opentofu/releases/tag/v" + . + ")"' templates/full-pipeline.yml)
-
export AVAILABLE_OPENTOFU_VERSIONS
-
cat .gitlab/release-template.md | envsubst > release-notes.md
release
:
tag_name
:
$CI_COMMIT_TAG
description
:
"
R
elease
$CI_COMMIT_TAG
of
components
repository
$CI_PROJECT_PATH"
description
:
'
./r
elease
-notes.md'
old-states
:
image
:
alpine:latest
...
...
This diff is collapsed.
Click to expand it.
.gitlab/release-template.md
0 → 100644
+
26
−
0
View file @
638468c1
Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH.
## Usage
You can use the OpenTofu CI/CD component from the CI/CD catalog using:
```
yaml
include
:
-
component
:
gitlab.com/components/opentofu/full-pipeline@$CI_COMMIT_TAG
inputs
:
# The version must currently be specified explicitly as an input,
# to find the correctly associated images. # This can be removed
# once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved.
version
:
$CI_COMMIT_TAG
opentofu_version
:
$LATEST_OPENTOFU_VERSION
stages
:
[
validate
,
test
,
build
,
deploy
,
cleanup
]
```
See the
[
README.md
](
README.md
)
for more usage examples.
## Available OpenTofu versions
This release is available with the following OpenTofu versions:
$AVAILABLE_OPENTOFU_VERSIONS
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