From 319ace1bdb8bad72c244699e468687626d4ba107 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Fri, 12 Jan 2024 20:38:38 +0100
Subject: [PATCH] feat(opentf): Update opentofu to current release

---
 images/opentf/.release  | 2 +-
 images/opentf/Earthfile | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/images/opentf/.release b/images/opentf/.release
index 30d338f3e..2f22e2506 100644
--- a/images/opentf/.release
+++ b/images/opentf/.release
@@ -1 +1 @@
-release=1.6.0-alpha2
+release=1.6.0
diff --git a/images/opentf/Earthfile b/images/opentf/Earthfile
index c77863cb1..39f2b8318 100644
--- a/images/opentf/Earthfile
+++ b/images/opentf/Earthfile
@@ -2,7 +2,8 @@ VERSION 0.7
 
 src:
     FROM ../mirror+golang
-    ARG branch=main
+    COPY .release ./
+    ARG branch=v$(awk -F'=' '$1 == "release" {print $2}' .release)
     WORKDIR /go-workdir
     GIT CLONE --branch=${branch} https://github.com/opentofu/opentofu.git ./
     SAVE ARTIFACT ./ ./src
-- 
GitLab