From d90b7a6f6480bdffb04a783878e1017d33384b7a Mon Sep 17 00:00:00 2001 From: Gusts Jonasts <101050452+0x0013@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:30:28 +0200 Subject: [PATCH] feat(Dockerfile): set used tf versions We need versions defined in our `atlantis.yaml` on `anu`. Add latest stable as well for updates. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fa5a87c121..7fe22fe7c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -100,9 +100,9 @@ RUN case ${TARGETPLATFORM} in \ mv git-lfs /usr/bin/git-lfs && \ git-lfs --version -# In the official Atlantis image, we only have the latest of each Terraform version. -# Each binary is about 80 MB so we limit it to the 4 latest minor releases or fewer -RUN AVAILABLE_TERRAFORM_VERSIONS="1.3.10 1.4.6 1.5.7" && \ +# Each binary is about 80 MB so we limit it to the versions we need, plus the +# latest stable version +RUN AVAILABLE_TERRAFORM_VERSIONS="0.12.31 0.13.7 1.3.7 1.4.6 1.5.2 1.7.5" && \ case "${TARGETPLATFORM}" in \ "linux/amd64") TERRAFORM_ARCH=amd64 ;; \ "linux/arm64") TERRAFORM_ARCH=arm64 ;; \