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

Improve input docs

parent 64d1b858
No related branches found
No related tags found
No related merge requests found
...@@ -71,18 +71,17 @@ stages: [validate, test, build, deploy, cleanup] ...@@ -71,18 +71,17 @@ stages: [validate, test, build, deploy, cleanup]
| Name | Default | Description | | Name | Default | Description |
| ---- | ------- | ----------- | | ---- | ------- | ----------- |
| `stage_validate` | `validate` | Defines the validate stage | | `stage_validate` | `validate` | Defines the validate stage. This stage includes the `fmt` and `validate` jobs. |
| `stage_test` | `test` | Defines the test stage | | `stage_build` | `build` | Defines the build stage. This stage includes the `plan` job. |
| `stage_build` | `build` | Defines the build stage | | `stage_deploy` | `deploy` | Defines the deploy stage. This stage includes the `apply` job. |
| `stage_deploy` | `deploy` | Defines the deploy stage | | `stage_cleanup` | `cleanup` | Defines the cleanup stage. This stage includes the `destroy` and `delete-state` jobs. |
| `stage_cleanup` | `cleanup` | Defines the cleanup stage | | `version` | `latest` | Version of this component. Has to be the same as the one in the component include entry. |
| `version` | `latest` | Version of this component | | `opentofu_version` | `1.6.0` | OpenTofu version that should be used. |
| `opentofu_version` | `1.6.0` | Released version of upstream OpenTofu | | `gitlab_opentofu_image` | `$CI_REGISTRY/components/opentofu/gitlab-opentofu:$[[ inputs.version ]]-opentofu$[[ inputs.opentofu_version ]]` | Tag of the gitlab-opentofu image. |
| `gitlab_opentofu_image` | `$CI_REGISTRY/components/opentofu/gitlab-opentofu:$[[ inputs.version ]]-opentofu$[[ inputs.opentofu_version ]]` | Image name of the gitlab-opentofu image | | `root_dir` | `${CI_PROJECT_DIR}` | Root directory for the OpenTofu project. |
| `root_dir` | `${CI_PROJECT_DIR}` | Root directory for the OpenTofu project | | `state_name` | `default` | Remote OpenTofu state name. |
| `state_name` | `default` | State name | | `auto_apply` | `false` | Whether the apply job is manual or automatically run. |
| `auto_apply` | `false` | Whether the apply job is manual or automatically run | | `auto_destroy` | `false` | Whether the destroy job is manual or automatically run. |
| `auto_destroy` | `false` | Whether the destroy job is manual or automatically run |
## Releases & Versioning ## Releases & Versioning
......
...@@ -3,33 +3,30 @@ spec: ...@@ -3,33 +3,30 @@ spec:
# Stages # Stages
stage_validate: stage_validate:
default: 'validate' default: 'validate'
description: 'Defines the validate stage' description: 'Defines the validate stage. This stage includes the `fmt` and `validate` jobs.'
stage_test:
default: 'test'
description: 'Defines the test stage'
stage_build: stage_build:
default: 'build' default: 'build'
description: 'Defines the build stage' description: 'Defines the build stage. This stage includes the `plan` job.'
stage_deploy: stage_deploy:
default: 'deploy' default: 'deploy'
description: 'Defines the deploy stage' description: 'Defines the deploy stage. This stage includes the `apply` job.'
stage_cleanup: stage_cleanup:
default: 'cleanup' default: 'cleanup'
description: 'Defines the cleanup stage' description: 'Defines the cleanup stage. This stage includes the `destroy` and `delete-state` jobs.'
# Versions # Versions
# This version is only required, because we cannot access the context of the component, # This version is only required, because we cannot access the context of the component,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/438275 # see https://gitlab.com/gitlab-org/gitlab/-/issues/438275
version: version:
default: 'latest' default: 'latest'
description: 'Version of this component' description: 'Version of this component. Has to be the same as the one in the component include entry.'
opentofu_version: opentofu_version:
default: '1.6.0' default: '1.6.0'
options: options:
- '1.6.0' - '1.6.0'
- '1.6.0-rc1' - '1.6.0-rc1'
description: 'Released version of upstream OpenTofu' description: 'OpenTofu version that should be used.'
# Images # Images
gitlab_opentofu_image: gitlab_opentofu_image:
...@@ -37,21 +34,21 @@ spec: ...@@ -37,21 +34,21 @@ spec:
# Currently, blocked by https://gitlab.com/gitlab-org/gitlab/-/issues/438275 # Currently, blocked by https://gitlab.com/gitlab-org/gitlab/-/issues/438275
# default: '$CI_REGISTRY/components/opentofu/gitlab-opentofu:$[[ inputs.opentofu_version ]]' # default: '$CI_REGISTRY/components/opentofu/gitlab-opentofu:$[[ inputs.opentofu_version ]]'
default: '$CI_REGISTRY/components/opentofu/gitlab-opentofu:$[[ inputs.version ]]-opentofu$[[ inputs.opentofu_version ]]' default: '$CI_REGISTRY/components/opentofu/gitlab-opentofu:$[[ inputs.version ]]-opentofu$[[ inputs.opentofu_version ]]'
description: 'Image name of the gitlab-opentofu image' description: 'Tag of the gitlab-opentofu image.'
# Configuration # Configuration
root_dir: root_dir:
default: ${CI_PROJECT_DIR} default: ${CI_PROJECT_DIR}
description: 'Root directory for the OpenTofu project' description: 'Root directory for the OpenTofu project.'
state_name: state_name:
default: default default: default
description: 'State name' description: 'Remote OpenTofu state name.'
auto_apply: auto_apply:
default: 'false' default: 'false'
description: 'Whether the apply job is manual or automatically run' description: 'Whether the apply job is manual or automatically run.'
auto_destroy: auto_destroy:
default: 'false' default: 'false'
description: 'Whether the destroy job is manual or automatically run' description: 'Whether the destroy job is manual or automatically run.'
--- ---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment