diff --git a/.gitlab/README.md.template b/.gitlab/README.md.template index b011690563683b7234aa0f94db978083c0923689..2dcca1d6e7bdfbff3e7e924fe69d5c2e41c86496 100644 --- a/.gitlab/README.md.template +++ b/.gitlab/README.md.template @@ -41,28 +41,29 @@ stages: [validate, build, deploy, cleanup] A concrete example may look like this: ```yaml -# Using `latest` +# Using version `0.10.0`: include: - - component: gitlab.com/components/opentofu/full-pipeline@~latest + - component: gitlab.com/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: latest + version: 0.10.0 opentofu_version: 1.6.1 stages: [validate, build, deploy, cleanup] --- -# ... or using `0.0.0-alpha1`: +# ... in case you absolutely know what you are doing and are +# aware that this may introduce breaking changes, you may use the latest release: include: - - component: gitlab.com/components/opentofu/full-pipeline@0.0.0-alpha1 + - component: gitlab.com/components/opentofu/full-pipeline@~latest 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.0.0-alpha1 + version: latest opentofu_version: 1.6.1 stages: [validate, build, deploy, cleanup] @@ -85,12 +86,12 @@ and compose your own pipeline, for example, to just run the `fmt` job you can do ```yaml include: - - component: gitlab.com/components/opentofu/fmt@latest + - component: gitlab.com/components/opentofu/fmt@<VERSON> 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: latest + version: <VERSION> opentofu_version: 1.6.1 root_dir: tofu/ ``` @@ -163,7 +164,7 @@ and then use the component as you would from GitLab.com, but change the domain, ```yaml include: - - component: gitlab.example.com/components/opentofu/full-pipeline@~latest + - component: gitlab.example.com/components/opentofu/full-pipeline@<VERSION> inputs: ... ``` diff --git a/README.md b/README.md index 3bc88efa15a029e49c24cc63ecfd41b12b3f44c0..cf060266909397e9e8b18662926d16bcc3afe5e2 100644 --- a/README.md +++ b/README.md @@ -43,28 +43,29 @@ stages: [validate, build, deploy, cleanup] A concrete example may look like this: ```yaml -# Using `latest` +# Using version `0.10.0`: include: - - component: gitlab.com/components/opentofu/full-pipeline@~latest + - component: gitlab.com/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: latest + version: 0.10.0 opentofu_version: 1.6.1 stages: [validate, build, deploy, cleanup] --- -# ... or using `0.0.0-alpha1`: +# ... in case you absolutely know what you are doing and are +# aware that this may introduce breaking changes, you may use the latest release: include: - - component: gitlab.com/components/opentofu/full-pipeline@0.0.0-alpha1 + - component: gitlab.com/components/opentofu/full-pipeline@~latest 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.0.0-alpha1 + version: latest opentofu_version: 1.6.1 stages: [validate, build, deploy, cleanup] @@ -87,12 +88,12 @@ and compose your own pipeline, for example, to just run the `fmt` job you can do ```yaml include: - - component: gitlab.com/components/opentofu/fmt@latest + - component: gitlab.com/components/opentofu/fmt@<VERSON> 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: latest + version: <VERSION> opentofu_version: 1.6.1 root_dir: tofu/ ``` @@ -182,7 +183,7 @@ and then use the component as you would from GitLab.com, but change the domain, ```yaml include: - - component: gitlab.example.com/components/opentofu/full-pipeline@~latest + - component: gitlab.example.com/components/opentofu/full-pipeline@<VERSION> inputs: ... ``` diff --git a/backports/.Base.latest.gitlab-ci.yml b/backports/.Base.latest.gitlab-ci.yml index 70d7a0ec7e6ef5e175674ae16860799fcafd9f92..5e7066f04266d3f91b4bdfa72c674506b694dda0 100644 --- a/backports/.Base.latest.gitlab-ci.yml +++ b/backports/.Base.latest.gitlab-ci.yml @@ -40,9 +40,9 @@ opentofu:use-component-instead-of-template: echo "The OpenTofu CI/CD component with a default configuration can be included as follows:" echo " " echo "include:" - echo " - component: gitlab.com/components/opentofu/full-pipeline@~latest" + echo " - component: gitlab.com/components/opentofu/full-pipeline@<VERSION>" echo " inputs:" - echo " version: latest" + echo " version: <VERSION>" echo " opentofu_version: 1.6.0" echo "" echo "stages: [validate, build, deploy, cleanup]" diff --git a/backports/OpenTofu/Base.latest.gitlab-ci.yml b/backports/OpenTofu/Base.latest.gitlab-ci.yml index 2672ebe12c9d56d7f83960b184300455b427f8f1..4e978fc1f6b5432d9f702bc8d9d86187ecfb54a4 100644 --- a/backports/OpenTofu/Base.latest.gitlab-ci.yml +++ b/backports/OpenTofu/Base.latest.gitlab-ci.yml @@ -40,9 +40,9 @@ opentofu:use-component-instead-of-template: echo "The OpenTofu CI/CD component with a default configuration can be included as follows:" echo " " echo "include:" - echo " - component: gitlab.com/components/opentofu/full-pipeline@~latest" + echo " - component: gitlab.com/components/opentofu/full-pipeline@<VERSION>" echo " inputs:" - echo " version: latest" + echo " version: <VERSION>" echo " opentofu_version: 1.6.0" echo "" echo "stages: [validate, build, deploy, cleanup]"