From 65c562ae297d79d1010cd87d170b2dae4ccb7620 Mon Sep 17 00:00:00 2001 From: Frederico Sabino <3332770+fmrsabino@users.noreply.github.com> Date: Mon, 17 Apr 2023 12:42:34 +0200 Subject: [PATCH] Use buildx in deploy_docker.sh (#1109) - Given the changes to how we do cross-compilation in 69711737511e75d6cc2d2c966ae4bfd1a357a82f, we now need to use `docker buildx build` instead of `docker build` - BuildX provides additional context which is now required by the new `Dockerfile` (e.g. `BUILDPLATFORM` and `TARGETPLATFORM` --- scripts/deploy_docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy_docker.sh b/scripts/deploy_docker.sh index a23b0a3f9..78d8408cc 100755 --- a/scripts/deploy_docker.sh +++ b/scripts/deploy_docker.sh @@ -23,7 +23,7 @@ runtime_image_id="$DOCKERHUB_ORG/$DOCKERHUB_PROJECT:$1" # Load cached builder image docker pull $cached_builder_image_id || true # Rebuild builder image if required -docker build \ +docker buildx build \ --target builder \ --cache-from $cached_builder_image_id \ -t $cached_builder_image_id \ @@ -34,7 +34,7 @@ docker build \ # Load cached runtime image docker pull $cached_runtime_image_id || true # Rebuild runtime image if required -docker build \ +docker buildx build \ --cache-from $cached_builder_image_id \ --cache-from $cached_runtime_image_id \ -t $runtime_image_id \