Skip to content

Commit

Permalink
feat(Dockerfile): set used tf versions
Browse files Browse the repository at this point in the history
We need versions defined in our `atlantis.yaml` on `anu`. Add latest
stable as well for updates.
  • Loading branch information
0x0013 committed Mar 18, 2024
1 parent bd4ceea commit d90b7a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;; \
Expand Down

0 comments on commit d90b7a6

Please sign in to comment.