diff --git a/images/opentf/.release b/images/opentf/.release index 30d338f3ef0e08bba45abda89a4073a413405604..2f22e2506871b7ea87c071a83782853afa5f5248 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 c77863cb180447462d0584b3d747edd2ef05459b..39f2b8318b91013da6eb999e2f476cdc47a9b441 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