Skip to content

Commit b93ffdd

Browse files
committed
feat: Add tfswitch
1 parent cb111fe commit b93ffdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM python:3.11-alpine
33
ENV TFENV_VERSION v3.0.0
44
ENV TGENV_VERSION v0.0.3
55
ENV TFLINT_VERSION v0.44.1
6+
ENV TFSWITCH_VERSION 0.13.1300
67
ENV AZURE_CLI_VERSION 2.43.0
78

89
RUN apk add --no-cache curl bash unzip git openssh-client jq \
@@ -11,12 +12,13 @@ RUN apk add --no-cache curl bash unzip git openssh-client jq \
1112
curl --fail --silent -L -o /tmp/tfenv.zip https://github.com/tfutils/tfenv/archive/refs/tags/${TFENV_VERSION}.zip && \
1213
curl --fail --silent -L -o /tmp/tgenv.zip https://github.com/cunymatthieu/tgenv/archive/refs/tags/${TGENV_VERSION}.zip && \
1314
curl --fail --silent -L -o /tmp/tflint.zip https://github.com/terraform-linters/tflint/releases/download/${TFLINT_VERSION}/tflint_linux_amd64.zip && \
15+
curl --fail --silent -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | TAG="${TFSWITCH_VERSION}}" bash \
1416
unzip -u /tmp/tfenv -d /tmp && mv /tmp/tfenv-* ~/.tfenv/ && \
1517
unzip -u /tmp/tgenv -d /tmp && mv /tmp/tgenv-* ~/.tgenv/ && \
1618
unzip -u /tmp/tflint -d /usr/local/bin && \
1719
ln -s ~/.tfenv/bin/* /usr/local/bin && \
1820
ln -s ~/.tgenv/bin/* /usr/local/bin && \
19-
rm -f /tmp/*.zip && tfenv --version && tgenv --version && tflint --version && az --version && \
21+
rm -f /tmp/*.zip && tfenv --version && tgenv --version && tflint --version && az --version && tfswitch --version && \
2022
adduser -g "iac-executor" -D iac-executor
2123

2224
USER iac-executor

0 commit comments

Comments
 (0)