use my local registry as a cache to deal with rerunning better
This commit is contained in:
parent
938eae887c
commit
30bf697842
1 changed files with 2 additions and 2 deletions
4
build.sh
4
build.sh
|
@ -10,9 +10,9 @@ for build in 5*; do
|
||||||
# exclude arm64 from quadmath builds since it doesn't apply
|
# exclude arm64 from quadmath builds since it doesn't apply
|
||||||
PLATFORMS=linux/amd64
|
PLATFORMS=linux/amd64
|
||||||
fi
|
fi
|
||||||
echo building $TAG...
|
echo building $TAG... $PLATFORMS
|
||||||
( cd $build;
|
( 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 $TAG && \
|
||||||
docker push $LOCAL_TAG
|
docker push $LOCAL_TAG
|
||||||
) | ts "$TAG [%H:%M:%S]" | tee build.$TAG.log || echo " Failed to build $TAG"
|
) | ts "$TAG [%H:%M:%S]" | tee build.$TAG.log || echo " Failed to build $TAG"
|
||||||
|
|
Loading…
Add table
Reference in a new issue