Skip to content

Commit 5c4326d

Browse files
johnstcnpull[bot]
authored andcommitted
fixup! fix(scripts): modify logic for determining terraform arch (#9595) (#9596)
1 parent 5be88b6 commit 5c4326d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Dockerfile.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN apk add --no-cache \
2525
# Terraform was disabled in the edge repo due to a build issue.
2626
# https://gitlab.alpinelinux.org/alpine/aports/-/commit/f3e263d94cfac02d594bef83790c280e045eba35
2727
# Using wget for now. Note that busybox unzip doesn't support streaming.
28-
RUN ARCH="$(arch)"; if [ "${ARCH}" == "x86_64" ]; then ARCH="amd64"; fi; wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.5.6/terraform_1.5.6_linux_${ARCH}.zip" && \
28+
RUN ARCH="$(arch)"; if [ "${ARCH}" == "x86_64" ]; then ARCH="amd64"; elif [ "${ARCH}" == "aarch64" ]; then ARCH="arm64"; fi; wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.5.6/terraform_1.5.6_linux_${ARCH}.zip" && \
2929
busybox unzip /tmp/terraform.zip -d /usr/local/bin && \
3030
rm -f /tmp/terraform.zip && \
3131
chmod +x /usr/local/bin/terraform && \

0 commit comments

Comments
 (0)