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

Do not recommend latest, but explicit version

parent df2ccfdb
No related branches found
No related tags found
No related merge requests found
...@@ -41,28 +41,29 @@ stages: [validate, build, deploy, cleanup] ...@@ -41,28 +41,29 @@ stages: [validate, build, deploy, cleanup]
A concrete example may look like this: A concrete example may look like this:
```yaml ```yaml
# Using `latest` # Using version `0.10.0`:
include: include:
- component: gitlab.com/components/opentofu/full-pipeline@~latest - component: gitlab.com/components/opentofu/full-pipeline@0.10.0
inputs: inputs:
# The version must currently be specified explicitly as an input, # The version must currently be specified explicitly as an input,
# to find the correctly associated images. # This can be removed # to find the correctly associated images. # This can be removed
# once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved. # once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved.
version: latest version: 0.10.0
opentofu_version: 1.6.1 opentofu_version: 1.6.1
stages: [validate, build, deploy, cleanup] 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: include:
- component: gitlab.com/components/opentofu/full-pipeline@0.0.0-alpha1 - component: gitlab.com/components/opentofu/full-pipeline@~latest
inputs: inputs:
# The version must currently be specified explicitly as an input, # The version must currently be specified explicitly as an input,
# to find the correctly associated images. # This can be removed # to find the correctly associated images. # This can be removed
# once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved. # once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved.
version: 0.0.0-alpha1 version: latest
opentofu_version: 1.6.1 opentofu_version: 1.6.1
stages: [validate, build, deploy, cleanup] 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 ...@@ -85,12 +86,12 @@ and compose your own pipeline, for example, to just run the `fmt` job you can do
```yaml ```yaml
include: include:
- component: gitlab.com/components/opentofu/fmt@latest - component: gitlab.com/components/opentofu/fmt@<VERSON>
inputs: inputs:
# The version must currently be specified explicitly as an input, # The version must currently be specified explicitly as an input,
# to find the correctly associated images. # This can be removed # to find the correctly associated images. # This can be removed
# once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved. # once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved.
version: latest version: <VERSION>
opentofu_version: 1.6.1 opentofu_version: 1.6.1
root_dir: tofu/ root_dir: tofu/
``` ```
...@@ -163,7 +164,7 @@ and then use the component as you would from GitLab.com, but change the domain, ...@@ -163,7 +164,7 @@ and then use the component as you would from GitLab.com, but change the domain,
```yaml ```yaml
include: include:
- component: gitlab.example.com/components/opentofu/full-pipeline@~latest - component: gitlab.example.com/components/opentofu/full-pipeline@<VERSION>
inputs: inputs:
... ...
``` ```
......
...@@ -43,28 +43,29 @@ stages: [validate, build, deploy, cleanup] ...@@ -43,28 +43,29 @@ stages: [validate, build, deploy, cleanup]
A concrete example may look like this: A concrete example may look like this:
```yaml ```yaml
# Using `latest` # Using version `0.10.0`:
include: include:
- component: gitlab.com/components/opentofu/full-pipeline@~latest - component: gitlab.com/components/opentofu/full-pipeline@0.10.0
inputs: inputs:
# The version must currently be specified explicitly as an input, # The version must currently be specified explicitly as an input,
# to find the correctly associated images. # This can be removed # to find the correctly associated images. # This can be removed
# once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved. # once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved.
version: latest version: 0.10.0
opentofu_version: 1.6.1 opentofu_version: 1.6.1
stages: [validate, build, deploy, cleanup] 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: include:
- component: gitlab.com/components/opentofu/full-pipeline@0.0.0-alpha1 - component: gitlab.com/components/opentofu/full-pipeline@~latest
inputs: inputs:
# The version must currently be specified explicitly as an input, # The version must currently be specified explicitly as an input,
# to find the correctly associated images. # This can be removed # to find the correctly associated images. # This can be removed
# once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved. # once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved.
version: 0.0.0-alpha1 version: latest
opentofu_version: 1.6.1 opentofu_version: 1.6.1
stages: [validate, build, deploy, cleanup] 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 ...@@ -87,12 +88,12 @@ and compose your own pipeline, for example, to just run the `fmt` job you can do
```yaml ```yaml
include: include:
- component: gitlab.com/components/opentofu/fmt@latest - component: gitlab.com/components/opentofu/fmt@<VERSON>
inputs: inputs:
# The version must currently be specified explicitly as an input, # The version must currently be specified explicitly as an input,
# to find the correctly associated images. # This can be removed # to find the correctly associated images. # This can be removed
# once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved. # once https://gitlab.com/gitlab-org/gitlab/-/issues/438275 is solved.
version: latest version: <VERSION>
opentofu_version: 1.6.1 opentofu_version: 1.6.1
root_dir: tofu/ root_dir: tofu/
``` ```
...@@ -182,7 +183,7 @@ and then use the component as you would from GitLab.com, but change the domain, ...@@ -182,7 +183,7 @@ and then use the component as you would from GitLab.com, but change the domain,
```yaml ```yaml
include: include:
- component: gitlab.example.com/components/opentofu/full-pipeline@~latest - component: gitlab.example.com/components/opentofu/full-pipeline@<VERSION>
inputs: inputs:
... ...
``` ```
......
...@@ -40,9 +40,9 @@ opentofu:use-component-instead-of-template: ...@@ -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 "The OpenTofu CI/CD component with a default configuration can be included as follows:"
echo " " echo " "
echo "include:" echo "include:"
echo " - component: gitlab.com/components/opentofu/full-pipeline@~latest" echo " - component: gitlab.com/components/opentofu/full-pipeline@<VERSION>"
echo " inputs:" echo " inputs:"
echo " version: latest" echo " version: <VERSION>"
echo " opentofu_version: 1.6.0" echo " opentofu_version: 1.6.0"
echo "" echo ""
echo "stages: [validate, build, deploy, cleanup]" echo "stages: [validate, build, deploy, cleanup]"
......
...@@ -40,9 +40,9 @@ opentofu:use-component-instead-of-template: ...@@ -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 "The OpenTofu CI/CD component with a default configuration can be included as follows:"
echo " " echo " "
echo "include:" echo "include:"
echo " - component: gitlab.com/components/opentofu/full-pipeline@~latest" echo " - component: gitlab.com/components/opentofu/full-pipeline@<VERSION>"
echo " inputs:" echo " inputs:"
echo " version: latest" echo " version: <VERSION>"
echo " opentofu_version: 1.6.0" echo " opentofu_version: 1.6.0"
echo "" echo ""
echo "stages: [validate, build, deploy, cleanup]" echo "stages: [validate, build, deploy, cleanup]"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment