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

hack options

parent 29ceac53
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ create-release: ...@@ -141,7 +141,7 @@ create-release:
- apk add --update yq envsubst - apk add --update yq envsubst
script: script:
- echo "Creating release $CI_COMMIT_TAG" - 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) - AVAILABLE_OPENTOFU_VERSIONS=$(yq -r '.spec.inputs.opentofu_version.options | filter((. | test("\$.*")) == false) | .[] | "- [`" + . + "`](https://github.com/opentofu/opentofu/releases/tag/v" + . + ")"' templates/full-pipeline.yml)
- export AVAILABLE_OPENTOFU_VERSIONS - export AVAILABLE_OPENTOFU_VERSIONS
- cat .gitlab/release-template.md | envsubst > release-notes.md - cat .gitlab/release-template.md | envsubst > release-notes.md
release: release:
......
...@@ -3,7 +3,7 @@ docs: ...@@ -3,7 +3,7 @@ docs:
echo '<!-- This document is generated by `make docs` from `.gitlab/README.md` -->' > README.md echo '<!-- This document is generated by `make docs` from `.gitlab/README.md` -->' > README.md
echo >> README.md echo >> README.md
cat readme0 >> README.md cat readme0 >> README.md
yq '.spec.inputs | .[] | "| `" + key + "` | `" + .default + "` | " + .description + (.options | (" Must be one of " + (. | map("`" + . + "`") | join(", ") + "." )) // "") + " |"' templates/full-pipeline.yml >> README.md yq '.spec.inputs | .[] | "| `" + key + "` | `" + .default + "` | " + .description + (.options | (" Must be one of " + (. | filter((. | test("\$$.*")) == false) | map("`" + . + "`") | join(", ") + "." )) // "") + " |"' templates/full-pipeline.yml >> README.md
echo >> README.md echo >> README.md
echo '### Available OpenTofu Versions' >> README.md echo '### Available OpenTofu Versions' >> README.md
echo >> README.md echo >> README.md
......
...@@ -76,7 +76,7 @@ stages: [validate, test, build, deploy, cleanup] ...@@ -76,7 +76,7 @@ stages: [validate, test, build, deploy, cleanup]
| `stage_deploy` | `deploy` | Defines the deploy stage. This stage includes the `apply` job. | | `stage_deploy` | `deploy` | Defines the deploy stage. This stage includes the `apply` job. |
| `stage_cleanup` | `cleanup` | Defines the cleanup stage. This stage includes the `destroy` and `delete-state` jobs. | | `stage_cleanup` | `cleanup` | Defines the cleanup stage. This stage includes the `destroy` and `delete-state` jobs. |
| `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. Has to be the same as the one in the component include entry. |
| `opentofu_version` | `1.6.0` | OpenTofu version that should be used. Must be one of `$OPENTOFU_VERSION`, `1.6.0`, `1.6.0-rc1`. | | `opentofu_version` | `1.6.0` | OpenTofu version that should be used. Must be one of `1.6.0`, `1.6.0-rc1`. |
| `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` | Remote OpenTofu 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. |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment