From 30bf697842894b824bf74fec2ac005d7a690cd63 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 11 Jun 2022 06:29:32 -0400 Subject: [PATCH] use my local registry as a cache to deal with rerunning better --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 879ecef..dd55c19 100755 --- a/build.sh +++ b/build.sh @@ -10,9 +10,9 @@ for build in 5*; do # exclude arm64 from quadmath builds since it doesn't apply PLATFORMS=linux/amd64 fi - echo building $TAG... + echo building $TAG... $PLATFORMS ( cd $build; - docker buildx build --platform=linux/amd64,linux/arm64 --progress=simple -t $TAG -t $LOCAL_TAG . 2>&1 && \ + docker buildx build --cache-from type=registry,ref=registry.docker.home.simcop2387.info:443/simcop2387/perl --cache-to type=registry,ref=registry.docker.home.simcop2387.info:443/simcop2387/perl,mode=max --platform=$PLATFORMS --progress=simple -t $TAG -t $LOCAL_TAG --push . 2>&1 && \ docker push $TAG && \ docker push $LOCAL_TAG ) | ts "$TAG [%H:%M:%S]" | tee build.$TAG.log || echo " Failed to build $TAG"