From 37d1e50dd431e4b12865c0ef0913c72c54a440d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Fri, 19 Apr 2024 21:54:54 +0200 Subject: [PATCH] update justfile --- justfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 9a41733..ef5acf2 100644 --- a/justfile +++ b/justfile @@ -17,9 +17,15 @@ make_release $VERSION $FORCE="": docker_release $TAG: #docker login -u erebe ghcr.io #~/.depot/bin/depot build --project v4z5w7md33 --platform linux/arm/v7,linux/arm64,linux/amd64 -t ghcr.io/erebe/wstunnel:$TAG -t ghcr.io/erebe/wstunnel:latest --push . - docker buildx create --append --name builder --driver=kubernetes --platform=linux/arm64 '--driver-opt="nodeselector=kubernetes.io/arch=arm64","tolerations=key=kubernetes.io/hostname,value=server"' --node=build-arm64 + docker buildx create --name builder --driver=kubernetes --platform=linux/arm64 '--driver-opt="nodeselector=kubernetes.io/arch=arm64","tolerations=key=kubernetes.io/hostname,value=server"' --node=build-arm64 docker buildx create --append --name builder --driver=kubernetes --platform=linux/amd64 '--driver-opt="nodeselector=kubernetes.io/arch=amd64","tolerations=key=kubernetes.io/hostname,value=toybox"' --node=build-amd64 docker buildx use builder - docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 -t ghcr.io/erebe/wstunnel:$TAG -t ghcr.io/erebe/wstunnel:latest --push . + docker buildx build \ + --platform linux/arm/v7,linux/arm64,linux/amd64 \ + --cache-from type=registry,ref=ghcr.io/erebe/wstunnel:cache \ + --cache-to type=registry,mode=max,image-manifest=true,oci-mediatypes=true,ref=ghcr.io/erebe/wstunnel:cache \ + -t ghcr.io/erebe/wstunnel:$TAG \ + -t ghcr.io/erebe/wstunnel:latest \ + --push . docker buildx rm builder