Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • auto-apply-for-backports
  • deploy-refactor
  • destroy-pipeline
  • destroy-plan
  • fix-readme-path
  • main
  • no-rules-in-job-templates
  • subdir
  • 0.0.0-alpha1
  • 0.1.0
  • 0.1.0-alpha1
  • 0.1.0-alpha10
  • 0.1.0-alpha11
  • 0.1.0-alpha12
  • 0.1.0-alpha2
  • 0.1.0-alpha3
  • 0.1.0-alpha4
  • 0.1.0-alpha5
  • 0.1.0-alpha6
  • 0.1.0-alpha7
  • 0.1.0-alpha8
  • 0.1.0-alpha9
  • 0.10.0
  • 0.10.0-rc1
  • 0.10.0-rc2
  • 0.11.0
  • 0.11.0-rc1
  • 0.12.0
  • 0.13.0
  • 0.14.0
  • 0.15.0
  • 0.16.0
  • 0.17.0
  • 0.18.0
  • 0.18.0-rc1
  • 0.18.0-rc2
  • 0.18.0-rc3
  • 0.18.0-rc4
  • 0.18.0-rc5
  • 0.19.0
  • 0.19.0-rc1
  • 0.2.0
  • 0.20.0
  • 0.21.0
  • 0.22.0
  • 0.22.0-rc1
  • 0.22.0-rc2
  • 0.22.0-rc3
  • 0.22.0-rc4
  • 0.23.0
  • 0.24.0
  • 0.24.0-rc1
  • 0.25.0
  • 0.26.0
  • 0.27.0
  • 0.28.0
  • 0.29.0
  • 0.3.0
  • 0.3.0-alpha1
  • 0.3.0-alpha10
  • 0.3.0-alpha2
  • 0.3.0-alpha3
  • 0.3.0-alpha4
  • 0.3.0-alpha5
  • 0.3.0-alpha6
  • 0.3.0-alpha7
  • 0.3.0-alpha8
  • 0.3.0-alpha9
  • 0.30.0
  • 0.31.0
  • 0.32.0
  • 0.33.0
  • 0.34.0
  • 0.34.0-rc1
  • 0.35.0
  • 0.35.0-rc1
  • 0.35.0-rc2
  • 0.35.0-rc3
  • 0.35.0-rc4
  • 0.35.0-rc5
  • 0.35.0-rc6
  • 0.36.0
  • 0.37.0
  • 0.37.0-rc2
  • 0.37.0-rc3
  • 0.37.0-rc4
  • 0.37.0-rc5
  • 0.37.0-rc6
  • 0.37.0-rc7
  • 0.38.0
  • 0.39.0
  • 0.39.0-rc1
  • 0.39.0-rc2
  • 0.4.0
  • 0.4.0-alpha1
  • 0.40.0
  • 0.40.0-rc1
  • 0.40.0-rc2
  • 0.40.0-rc3
  • 0.40.0-rc4
  • 0.40.0-rc5
  • 0.40.0-rc6
  • 0.40.0-rc7
  • 0.41.0
  • 0.42.0
  • 0.42.0-rc1
  • 0.42.0-rc2
  • 0.42.0-rc3
108 results

Target

Select target project
  • components/opentofu
1 result
Select Git revision
  • auto-apply-for-backports
  • deploy-refactor
  • destroy-pipeline
  • destroy-plan
  • fix-readme-path
  • main
  • no-rules-in-job-templates
  • subdir
  • 0.0.0-alpha1
  • 0.1.0
  • 0.1.0-alpha1
  • 0.1.0-alpha10
  • 0.1.0-alpha11
  • 0.1.0-alpha12
  • 0.1.0-alpha2
  • 0.1.0-alpha3
  • 0.1.0-alpha4
  • 0.1.0-alpha5
  • 0.1.0-alpha6
  • 0.1.0-alpha7
  • 0.1.0-alpha8
  • 0.1.0-alpha9
  • 0.10.0
  • 0.10.0-rc1
  • 0.10.0-rc2
  • 0.11.0
  • 0.11.0-rc1
  • 0.12.0
  • 0.13.0
  • 0.14.0
  • 0.15.0
  • 0.16.0
  • 0.17.0
  • 0.18.0
  • 0.18.0-rc1
  • 0.18.0-rc2
  • 0.18.0-rc3
  • 0.18.0-rc4
  • 0.18.0-rc5
  • 0.19.0
  • 0.19.0-rc1
  • 0.2.0
  • 0.20.0
  • 0.21.0
  • 0.22.0
  • 0.22.0-rc1
  • 0.22.0-rc2
  • 0.22.0-rc3
  • 0.22.0-rc4
  • 0.23.0
  • 0.24.0
  • 0.24.0-rc1
  • 0.25.0
  • 0.26.0
  • 0.27.0
  • 0.28.0
  • 0.29.0
  • 0.3.0
  • 0.3.0-alpha1
  • 0.3.0-alpha10
  • 0.3.0-alpha2
  • 0.3.0-alpha3
  • 0.3.0-alpha4
  • 0.3.0-alpha5
  • 0.3.0-alpha6
  • 0.3.0-alpha7
  • 0.3.0-alpha8
  • 0.3.0-alpha9
  • 0.30.0
  • 0.31.0
  • 0.32.0
  • 0.33.0
  • 0.34.0
  • 0.34.0-rc1
  • 0.35.0
  • 0.35.0-rc1
  • 0.35.0-rc2
  • 0.35.0-rc3
  • 0.35.0-rc4
  • 0.35.0-rc5
  • 0.35.0-rc6
  • 0.36.0
  • 0.37.0
  • 0.37.0-rc2
  • 0.37.0-rc3
  • 0.37.0-rc4
  • 0.37.0-rc5
  • 0.37.0-rc6
  • 0.37.0-rc7
  • 0.38.0
  • 0.39.0
  • 0.39.0-rc1
  • 0.39.0-rc2
  • 0.4.0
  • 0.4.0-alpha1
  • 0.40.0
  • 0.40.0-rc1
  • 0.40.0-rc2
  • 0.40.0-rc3
  • 0.40.0-rc4
  • 0.40.0-rc5
  • 0.40.0-rc6
  • 0.40.0-rc7
  • 0.41.0
  • 0.42.0
  • 0.42.0-rc1
  • 0.42.0-rc2
  • 0.42.0-rc3
108 results
Show changes
Commits on Source (5)
Showing
with 56 additions and 89 deletions
......@@ -29,10 +29,6 @@ together with an OpenTofu version.
include:
- component: $CI_SERVER_FQDN/components/opentofu/full-pipeline@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
stages: [validate, test, build, deploy, cleanup]
......@@ -43,10 +39,6 @@ stages: [validate, test, build, deploy, cleanup]
include:
- component: $CI_SERVER_FQDN/components/opentofu/validate-plan-apply@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
stages: [validate, build, deploy]
......@@ -55,10 +47,6 @@ stages: [validate, build, deploy]
include:
- component: $CI_SERVER_FQDN/components/opentofu/validate-plan-apply@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
trigger_in_child_pipeline: true
```
......@@ -70,10 +58,6 @@ A concrete example may look like this:
include:
- component: $CI_SERVER_FQDN/components/opentofu/full-pipeline@0.10.0
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: 0.10.0 # component version
opentofu_version: 1.6.1
stages: [validate, test, build, deploy, cleanup]
......@@ -100,10 +84,6 @@ Or import all jobs as hidden templates ready to be extended:
include:
- component: $CI_SERVER_FQDN/components/opentofu/job-templates@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
stages: [...]
......@@ -188,10 +168,6 @@ The following snippet will auto-encrypt your state with a passphrase coming from
include:
- component: $CI_SERVER_FQDN/components/opentofu/validate-plan-apply@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
auto_encryption: true
auto_encryption_passphrase: $PASSPHRASE
......@@ -220,10 +196,6 @@ An example setup may look like this:
include:
- component: $CI_SERVER_FQDN/components/opentofu/validate-plan-apply@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
enable_id_tokens: true
......@@ -298,10 +270,6 @@ and compose your own pipeline, for example, to just run the `fmt` job you can do
include:
- component: $CI_SERVER_FQDN/components/opentofu/fmt@<VERSION>
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: <VERSION>
opentofu_version: 1.6.1
root_dir: tofu/
```
......@@ -315,10 +283,6 @@ you want to extend the jobs:
include:
- component: $CI_SERVER_FQDN/components/opentofu/job-templates@<VERSION>
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: <VERSION>
opentofu_version: 1.6.1
plan:
......
......@@ -19,10 +19,6 @@ You can use the OpenTofu CI/CD component from the CI/CD catalog using:
include:
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/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 # component version
opentofu_version: $LATEST_OPENTOFU_VERSION
stages: [validate, test, build, deploy, cleanup]
......
......@@ -26,6 +26,13 @@ echo "${version}" | "${script_dir}/check-semantic-version.sh"
echo "Starting release process for ${version} ..."
echo "Updating default value for version input to match ${version} ..."
"${script_dir}/update-self-version.sh" "${version}"
git commit templates/*.yml -m "Update version input default for ${version} release"
git push origin main
echo "Determing last stable version ..."
last_stable_version_sha="$(git tag | grep -E '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$' | sort --version-sort --reverse | head -n1 | xargs git rev-list -n1)"
echo "Using commit '${last_stable_version_sha}' to start the changelog from ..."
......
#!/usr/bin/env sh
set -e
script_dir="$(dirname "$0")"
project_dir="$script_dir/../.."
VERSION="$1"
if [ -z "$VERSION" ]; then
echo "Error: version must be passed as first argument" >&2
exit 1
fi
echo "Updating template files ..."
templates="templates/*.yml"
templates_exclude="templates/delete-state.yml templates/module-release.yml templates/__internal_id_tokens_base_job.yml"
for relative_template_file in $templates; do
if echo "$templates_exclude" | grep -q "$relative_template_file"; then continue; fi
template_file="$project_dir/$relative_template_file"
tmp_template_file=$(mktemp)
echo "Updating $template_file ... "
yq eval-all '
select(document_index == 0).spec.inputs.version.default
= "'"$VERSION"'"
' "$template_file" > "$tmp_template_file"
diff -Bw "$template_file" "$tmp_template_file" | patch "$template_file" -
done
## 2.0.0-rc1 (2025-04-10)
### Changed (2 changes)
- [Change default for `version` input to match component version](https://gitlab.com/components/opentofu/-/commit/9b69280a41644f127e47c812b64dd1426ff78eb9) ([merge request](https://gitlab.com/components/opentofu/-/merge_requests/266))
- [Use GITLAB_TOFU_STATE_NAME for plan job resource_group value](https://gitlab.com/components/opentofu/-/commit/00f5ccbad78bd04aaa2d2a00e4fb668d7b5b435f) ([merge request](https://gitlab.com/components/opentofu/-/merge_requests/265))
## 1.1.0 (2025-03-21)
### Added (1 change)
......
......@@ -31,10 +31,6 @@ together with an OpenTofu version.
include:
- component: $CI_SERVER_FQDN/components/opentofu/full-pipeline@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
stages: [validate, test, build, deploy, cleanup]
......@@ -45,10 +41,6 @@ stages: [validate, test, build, deploy, cleanup]
include:
- component: $CI_SERVER_FQDN/components/opentofu/validate-plan-apply@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
stages: [validate, build, deploy]
......@@ -57,10 +49,6 @@ stages: [validate, build, deploy]
include:
- component: $CI_SERVER_FQDN/components/opentofu/validate-plan-apply@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
trigger_in_child_pipeline: true
```
......@@ -72,10 +60,6 @@ A concrete example may look like this:
include:
- component: $CI_SERVER_FQDN/components/opentofu/full-pipeline@0.10.0
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: 0.10.0 # component version
opentofu_version: 1.6.1
stages: [validate, test, build, deploy, cleanup]
......@@ -102,10 +86,6 @@ Or import all jobs as hidden templates ready to be extended:
include:
- component: $CI_SERVER_FQDN/components/opentofu/job-templates@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
stages: [...]
......@@ -190,10 +170,6 @@ The following snippet will auto-encrypt your state with a passphrase coming from
include:
- component: $CI_SERVER_FQDN/components/opentofu/validate-plan-apply@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
auto_encryption: true
auto_encryption_passphrase: $PASSPHRASE
......@@ -222,10 +198,6 @@ An example setup may look like this:
include:
- component: $CI_SERVER_FQDN/components/opentofu/validate-plan-apply@<VERSION>
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: <VERSION> # component version
opentofu_version: <OPENTOFU_VERSION>
enable_id_tokens: true
......@@ -300,10 +272,6 @@ and compose your own pipeline, for example, to just run the `fmt` job you can do
include:
- component: $CI_SERVER_FQDN/components/opentofu/fmt@<VERSION>
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: <VERSION>
opentofu_version: 1.6.1
root_dir: tofu/
```
......@@ -317,10 +285,6 @@ you want to extend the jobs:
include:
- component: $CI_SERVER_FQDN/components/opentofu/job-templates@<VERSION>
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: <VERSION>
opentofu_version: 1.6.1
plan:
......
......@@ -12,7 +12,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -12,7 +12,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -12,7 +12,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -12,7 +12,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -21,7 +21,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -12,7 +12,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -21,7 +21,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -12,7 +12,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -12,7 +12,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -15,7 +15,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -15,7 +15,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -12,7 +12,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......
......@@ -12,7 +12,7 @@ spec:
# This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version:
default: 'latest'
default: '2.0.0-rc1'
description: 'Version of this component. Has to be the same as the one in the component include entry.'
base_os:
......