diff --git a/Makefile b/Makefile index 2174b57a731c5dcf358199ee1fbd4e722d99d977..43a144dfc3f5a3b85e681efe62b6e854da8c82a0 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,14 @@ 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 diff --git a/README.md b/README.md index a5d5d0640afd1765c759e1825a57754dae7ec386..964317112d3ced7951c10a454d78e9ca39dece25 100644 --- a/README.md +++ b/README.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.