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

Add proper release notes

parent e6a1e025
No related branches found
No related tags found
No related merge requests found
......@@ -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: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH"
description: './release-notes.md'
old-states:
image: alpine:latest
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment