Skip to content

Commit ec8fe82

Browse files
committed
fix: push multi-arch images with correct platform
1 parent cbef761 commit ec8fe82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile.enterprise

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,19 @@ $(IMAGES): $(ENTERPRISE_BUILD)/exectrace_$(VERSION)_linux_%.tag: $(ENTERPRISE_BU
6464
)
6565
if [[ "$${arch_map[$${arch}]+exists}" != "" ]]; then
6666
arch="$${arch_map[$${arch}]}"
67+
else
68+
echo "Unknown arch: $${arch}"
69+
exit 1
6770
fi
6871

6972
temp_dir="$$(mktemp -d)"
7073
cp enterprise/Dockerfile "$${temp_dir}/Dockerfile"
7174
cp "$<" "$${temp_dir}/exectrace"
7275

7376
docker build \
77+
--platform "$${arch}" \
7478
--tag "$${image_tag}" \
79+
--no-cache \
7580
--build-arg "CODER_VERSION=$(VERSION)" \
7681
"$${temp_dir}"
7782

0 commit comments

Comments
 (0)