diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6de90a544de87bcce757fd896a627e759a04c88b..23830f72512fce2499ebef53e513c868f05a9afb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -141,7 +141,7 @@ create-release: - apk add --update yq envsubst script: - 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 - cat .gitlab/release-template.md | envsubst > release-notes.md release: diff --git a/Makefile b/Makefile index bd7973ee2693866ec280f7acc8d222624b7dc711..2e458d2c3d8652b09f5fcbf792b8c915ab418ead 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ docs: echo '<!-- This document is generated by `make docs` from `.gitlab/README.md` -->' > README.md echo >> 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 '### Available OpenTofu Versions' >> README.md echo >> README.md diff --git a/README.md b/README.md index 80bb505af6f34eef48746a8285d58031e3d729c3..6a861fa5221620b5f1ee5f0b3d9f6c0eed300e58 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ stages: [validate, test, build, deploy, cleanup] | `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. | | `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. | | `state_name` | `default` | Remote OpenTofu state name. | | `auto_apply` | `false` | Whether the apply job is manual or automatically run. |