From 0bc2b2e71e1e0f4e101ea2d46055548d212ccab3 Mon Sep 17 00:00:00 2001
From: Timo Furrer <tfurrer@gitlab.com>
Date: Wed, 27 Mar 2024 08:20:05 +0100
Subject: [PATCH] Include OpenTofu 1.7.0-alpha1

---
 .gitlab-ci.yml                    | 1 +
 README.md                         | 3 ++-
 templates/apply.yml               | 1 +
 templates/custom-command.yml      | 1 +
 templates/destroy.yml             | 1 +
 templates/fmt.yml                 | 1 +
 templates/full-pipeline.yml       | 1 +
 templates/job-templates.yml       | 1 +
 templates/plan.yml                | 1 +
 templates/test.yml                | 1 +
 templates/validate-plan-apply.yml | 1 +
 templates/validate-plan.yml       | 1 +
 templates/validate.yml            | 1 +
 13 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cfe2760..7a59d54 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -52,6 +52,7 @@ stages:
 .opentofu-versions:
   parallel:
     matrix:
+      - OPENTOFU_VERSION: '1.7.0-alpha1'
       - OPENTOFU_VERSION: '1.6.2'
       - OPENTOFU_VERSION: '1.6.1'
       - OPENTOFU_VERSION: '1.6.0'
diff --git a/README.md b/README.md
index b9ade2b..d5e80df 100644
--- a/README.md
+++ b/README.md
@@ -182,7 +182,7 @@ Have a look at the individual template spec to learn about the available inputs.
 | `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.2` | OpenTofu version that should be used. Must be one of `1.6.2`, `1.6.1`, `1.6.0`. |
+| `opentofu_version` | `1.6.2` | OpenTofu version that should be used. Must be one of `1.7.0-alpha1`, `1.6.2`, `1.6.1`, `1.6.0`. |
 | `image_registry_base` | `$CI_REGISTRY/components/opentofu` | Host URI to the job images. Will be combined with `image_name` to construct the actual image URI. |
 | `image_name` | `gitlab-opentofu` | Image name for the job images. Hosted under `image_registry_base`. |
 | `root_dir` | `${CI_PROJECT_DIR}` | Root directory for the OpenTofu project. |
@@ -194,6 +194,7 @@ Have a look at the individual template spec to learn about the available inputs.
 
 The following OpenTofu versions are available with this component via the `opentofu_version` input:
 
+- [`1.7.0-alpha1`](https://github.com/opentofu/opentofu/releases/tag/v1.7.0-alpha1)
 - [`1.6.2`](https://github.com/opentofu/opentofu/releases/tag/v1.6.2)
 - [`1.6.1`](https://github.com/opentofu/opentofu/releases/tag/v1.6.1)
 - [`1.6.0`](https://github.com/opentofu/opentofu/releases/tag/v1.6.0)
diff --git a/templates/apply.yml b/templates/apply.yml
index 1cbd7a0..05a6447 100644
--- a/templates/apply.yml
+++ b/templates/apply.yml
@@ -19,6 +19,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/custom-command.yml b/templates/custom-command.yml
index 5bdcc6b..75740aa 100644
--- a/templates/custom-command.yml
+++ b/templates/custom-command.yml
@@ -19,6 +19,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/destroy.yml b/templates/destroy.yml
index 4c643ec..aa0a3fa 100644
--- a/templates/destroy.yml
+++ b/templates/destroy.yml
@@ -19,6 +19,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/fmt.yml b/templates/fmt.yml
index a1acee8..89c51e1 100644
--- a/templates/fmt.yml
+++ b/templates/fmt.yml
@@ -19,6 +19,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/full-pipeline.yml b/templates/full-pipeline.yml
index 49a32e9..cb2afeb 100644
--- a/templates/full-pipeline.yml
+++ b/templates/full-pipeline.yml
@@ -28,6 +28,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/job-templates.yml b/templates/job-templates.yml
index 033d08e..37e3db7 100644
--- a/templates/job-templates.yml
+++ b/templates/job-templates.yml
@@ -28,6 +28,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/plan.yml b/templates/plan.yml
index 9a7d46f..94d029d 100644
--- a/templates/plan.yml
+++ b/templates/plan.yml
@@ -19,6 +19,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/test.yml b/templates/test.yml
index be0cbe8..6749b36 100644
--- a/templates/test.yml
+++ b/templates/test.yml
@@ -19,6 +19,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/validate-plan-apply.yml b/templates/validate-plan-apply.yml
index 1dcb221..ffcb172 100644
--- a/templates/validate-plan-apply.yml
+++ b/templates/validate-plan-apply.yml
@@ -22,6 +22,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/validate-plan.yml b/templates/validate-plan.yml
index 903360a..1cf2a9d 100644
--- a/templates/validate-plan.yml
+++ b/templates/validate-plan.yml
@@ -19,6 +19,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
diff --git a/templates/validate.yml b/templates/validate.yml
index 3fe2b46..dab203f 100644
--- a/templates/validate.yml
+++ b/templates/validate.yml
@@ -19,6 +19,7 @@ spec:
       default: '1.6.2'
       options:
         - '$OPENTOFU_VERSION'
+        - '1.7.0-alpha1'
         - '1.6.2'
         - '1.6.1'
         - '1.6.0'
-- 
GitLab