Skip to content
Snippets Groups Projects
Unverified Commit 9b820e44 authored by Willian Paixao's avatar Willian Paixao
Browse files

feat: Allow multi-arch image

parent ae896090
No related branches found
No related tags found
No related merge requests found
...@@ -2,13 +2,15 @@ ARG BASE_IMAGE ...@@ -2,13 +2,15 @@ ARG BASE_IMAGE
FROM $BASE_IMAGE FROM $BASE_IMAGE
ARG TARGETARCH
ARG TERRAFORM_BINARY_VERSION ARG TERRAFORM_BINARY_VERSION
RUN apk add --no-cache jq curl git openssh RUN apk add --no-cache jq curl git openssh
WORKDIR /tmp WORKDIR /tmp
RUN ( curl -sLo terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_BINARY_VERSION}/terraform_${TERRAFORM_BINARY_VERSION}_linux_amd64.zip" && \ RUN ( curl -sLo terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_BINARY_VERSION}/terraform_${TERRAFORM_BINARY_VERSION}_linux_${TARGETARCH:-amd64}.zip" && \
unzip terraform.zip && \ unzip terraform.zip && \
rm terraform.zip && \ rm terraform.zip && \
mv ./terraform /usr/local/bin/terraform \ mv ./terraform /usr/local/bin/terraform \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment