Skip to content
Snippets Groups Projects
Commit cbabdf3a authored by mptr's avatar mptr Committed by Timo Furrer
Browse files

ci: improve version check

parent 21ea48a1
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,11 @@ project_dir="$script_dir/../.." ...@@ -7,8 +7,11 @@ project_dir="$script_dir/../.."
echo "Updating template files ..." echo "Updating template files ..."
templates="templates/apply.yml templates/custom-command.yml templates/destroy.yml templates/fmt.yml templates/full-pipeline.yml templates/job-templates.yml templates/plan.yml templates/test.yml templates/validate-plan-apply.yml templates/validate-plan-destroy.yml templates/validate-plan.yml templates/validate.yml" templates="templates/*.yml"
templates_exclude="templates/delete-state.yml templates/module-release.yml"
for relative_template_file in $templates; do for relative_template_file in $templates; do
if echo "$templates_exclude" | grep -q "$relative_template_file"; then continue; fi
template_file="$project_dir/$relative_template_file" template_file="$project_dir/$relative_template_file"
tmp_template_file1=$(mktemp) tmp_template_file1=$(mktemp)
tmp_template_file2=$(mktemp) tmp_template_file2=$(mktemp)
......
...@@ -18,13 +18,13 @@ spec: ...@@ -18,13 +18,13 @@ spec:
opentofu_version: opentofu_version:
default: '1.7.1' default: '1.7.1'
options: options:
- '$OPENTOFU_VERSION'
- '1.7.1' - '1.7.1'
- '1.7.0' - '1.7.0'
- '1.7.0-alpha1' - '1.7.0-alpha1'
- '1.6.2' - '1.6.2'
- '1.6.1' - '1.6.1'
- '1.6.0' - '1.6.0'
- '$OPENTOFU_VERSION'
description: 'OpenTofu version that should be used.' description: 'OpenTofu version that should be used.'
# Images # Images
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment