This is an automated email from the ASF dual-hosted git repository.
sciabarracom pushed a commit to branch build-local
in repository https://gitbox.apache.org/repos/asf/openserverless-build.git
The following commit(s) were added to refs/heads/build-local by this push:
new 35575d9 Initialize buildx before multi-arch builds
35575d9 is described below
commit 35575d91af3c7257842433a3415e4b25da9f5148
Author: Michele Sciabarra <[email protected]>
AuthorDate: Wed Jul 1 08:01:59 2026 +0000
Initialize buildx before multi-arch builds
---
Taskfile.yml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 7d49d90..b64edeb 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -190,9 +190,10 @@ tasks:
- task: compile:standalone
docker-setup:
- - docker run -it --rm --userns=host --privileged tonistiigi/binfmt
--install all
- - docker buildx create --name openserverless
+ - docker run --rm --privileged tonistiigi/binfmt --install all
+ - docker buildx inspect openserverless >/dev/null 2>&1 || docker buildx
create --name openserverless --driver docker-container
- docker buildx use openserverless
+ - docker buildx inspect --bootstrap
docker-login: >
echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_USER --password-stdin
@@ -328,6 +329,7 @@ tasks:
buildx-all:local:
cmds:
+ - task: docker-setup
- task: ensure-openwhisk
- task: build:scala
vars:
@@ -426,6 +428,7 @@ tasks:
KUBE_NAMESPACE: "{{.KUBE_NAMESPACE}}"
buildx-and-push:
+ - task: docker-setup
- task: build:scala
vars:
ACT: "buildx-push"