Skip to content

Commit

Permalink
Merge pull request #20 from XenitAB/bump-tf-0.14.7
Browse files Browse the repository at this point in the history
Update terraform from 0.13.5 to 0.14.7
  • Loading branch information
simongottschlag authored Feb 23, 2021
2 parents 5a60259 + 5efb485 commit 0d87ebf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN /usr/src/install-scripts/tflint.sh --version="v0.21.0" --sha="f80a85dbe88d39

# Install terraform (tfenv)
COPY install-scripts/tfenv.sh /usr/src/install-scripts/tfenv.sh
RUN /usr/src/install-scripts/tfenv.sh --latest-terraform-version="0.13.5" --tfenv-version="v2.0.0" --user="${USER}" --group="${GROUP}"
RUN /usr/src/install-scripts/tfenv.sh --latest-terraform-version="0.14.7" --tfenv-version="v2.2.0" --user="${USER}" --group="${GROUP}"

# Install Open Policy Agent
COPY install-scripts/opa.sh /usr/src/install-scripts/opa.sh
Expand Down
3 changes: 2 additions & 1 deletion docker/install-scripts/tfenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ done
git clone -b ${TFENV_VERSION} https://github.com/tfutils/tfenv.git /opt/tfenv
ln -s /opt/tfenv/bin/* /usr/local/bin

tfenv list-remote | grep -v "-" | grep ${LATEST_TERRAFORM_VERSION} -A 4 | xargs -t -I % tfenv install %
#tfenv list-remote | grep -v "-" | grep ${LATEST_TERRAFORM_VERSION} -A 4 | xargs -t -I % tfenv install %
tfenv install ${LATEST_TERRAFORM_VERSION}
tfenv use ${LATEST_TERRAFORM_VERSION}

chown -R ${USER}:${GROUP} /opt/tfenv

0 comments on commit 0d87ebf

Please sign in to comment.