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

Generate available OpenTofu versions into README

parent c1e9f943
No related branches found
No related tags found
No related merge requests found
docs:
csplit -sf readme -n 1 .gitlab/README.md '/<INPUTS>/'
yq '.spec.inputs | .[] | "| `" + key + "` | `" + .default + "` | " + .description + (.options | (" Must be one of " + (. | map("`" + . + "`")| join(", ") + "." )) // "") + " |"' templates/full-pipeline.yml > readme_inputs.md
echo '<!-- This document is generated by `make docs` from `.gitlab/README.md` -->' > README.md
echo >> README.md
cat readme0 >> README.md
cat readme_inputs.md >> README.md
yq '.spec.inputs | .[] | "| `" + key + "` | `" + .default + "` | " + .description + (.options | (" Must be one of " + (. | map("`" + . + "`")| join(", ") + "." )) // "") + " |"' templates/full-pipeline.yml >> README.md
echo >> README.md
echo '### Available OpenTofu Versions' >> README.md
echo >> README.md
echo 'The following OpenTofu versions are available with this component via the `opentofu_version` input:' >> README.md
echo >> README.md
yq -r '.spec.inputs.opentofu_version.options | .[] | "- [`" + . + "`](https://github.com/opentofu/opentofu/releases/tag/v" + . + ")"' templates/full-pipeline.yml >> README.md
tail -n+2 readme1 >> README.md
rm -f readme0 readme1 readme_inputs.md
......@@ -83,6 +83,13 @@ stages: [validate, test, build, deploy, cleanup]
| `auto_apply` | `false` | Whether the apply job is manual or automatically run. |
| `auto_destroy` | `false` | Whether the destroy job is manual or automatically run. |
### Available OpenTofu Versions
The following OpenTofu versions are available with this component via the `opentofu_version` input:
- [`1.6.0`](https://github.com/opentofu/opentofu/releases/tag/v1.6.0)
- [`1.6.0-rc1`](https://github.com/opentofu/opentofu/releases/tag/v1.6.0-rc1)
## Releases & Versioning
This project currently releases tagged commits.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment