From f1f91267bba45b362c574445f766055b9387a70e Mon Sep 17 00:00:00 2001 From: omkar Date: Fri, 23 Aug 2024 15:13:10 -0400 Subject: [PATCH] Build with amd64 compatible image (#925) * Build with amd64 compatible image * Update codeflow build spec * Remove architecture attrs so that image is multiarch * arm64 instead of amd --------- Co-authored-by: David Roth --- .codeflow.yml | 12 ++---------- tools/ci/build-dockerfile.sh | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.codeflow.yml b/.codeflow.yml index eb1bf3c736..57bbc4fceb 100644 --- a/.codeflow.yml +++ b/.codeflow.yml @@ -13,16 +13,8 @@ build: - BaldurECR: name: docs path: ./apps/base-docs/Dockerfile - - BaldurECR: - name: bridge - path: ./apps/bridge/Dockerfile - - BaldurECR: - name: goerli-bridge - path: ./apps/bridge/Dockerfile - - BaldurECR: - name: sepolia-bridge - path: ./apps/bridge/Dockerfile + multi_arch: true operate: slack_channels: - - "#base-codeflow-notifications" + - '#base-codeflow-notifications' diff --git a/tools/ci/build-dockerfile.sh b/tools/ci/build-dockerfile.sh index 1c150578f9..a4e6180a83 100755 --- a/tools/ci/build-dockerfile.sh +++ b/tools/ci/build-dockerfile.sh @@ -3,8 +3,8 @@ set -eo pipefail # We have to put this in a separate file as the pipeline # command needs to be static, and this env var breaks that. -docker build --pull -f "$DOCKERFILE_PATH" -t ci_build_test_image --build-arg CODEFLOW_COMMIT_TAG . +docker build --platform=linux/arm64 --pull -f "$DOCKERFILE_PATH" -t ci_build_test_image --build-arg CODEFLOW_COMMIT_TAG . # Cleanup after a successful build to avoid the agent # running out of disk space! -docker image rm -f ci_build_test_image \ No newline at end of file +docker image rm -f ci_build_test_image