fix(scripts): modify logic for determining terraform arch (#9595)

Commit fb3616c used a build-arg to set the desired terrafomr
architeture to fetch. This is set in build_docker.sh but not
when building using depot.dev. Baking the logic into the
Dockerfile instead.
This commit is contained in:
Cian Johnston
2023-09-08 10:47:51 +00:00
committed by GitHub
parent 8d7eb1728c
commit a3a16a1586
2 changed files with 1 additions and 5 deletions
-2
View File
@@ -103,7 +103,6 @@ declare -A arch_map=(
[arm]="linux/arm/v7"
[armv7]="linux/arm/v7"
)
orig_arch="$arch"
if [[ "${arch_map[$arch]+exists}" != "" ]]; then
arch="${arch_map[$arch]}"
fi
@@ -125,7 +124,6 @@ if [[ "$build_base" != "" ]]; then
log "--- Building base Docker image for $arch ($build_base)"
docker build \
--platform "$arch" \
--build-arg "ARCH=${orig_arch}" \
--tag "$build_base" \
--no-cache \
-f Dockerfile.base \