Commit dadaa3d1 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

Update ops/scripts/build-ci.sh

Co-authored-by: default avatarLiam Horne <liam@lihorne.com>
parent 6cda2cd4
......@@ -5,7 +5,14 @@ function build() {
echo "Tag: $2"
echo "Dockerfile: $3"
echo "Context: $4"
docker buildx build --tag "$2" --build-arg LOCAL_REGISTRY=localhost:5000 --cache-from "type=local,src=/tmp/.buildx-cache/$1" --cache-to="type=local,dest=/tmp/.buildx-cache-new/$1" --file "$3" --load "$4" &
docker buildx build \
--tag "$2" \
--build-arg LOCAL_REGISTRY=localhost:5000 \
--cache-from "type=local,src=/tmp/.buildx-cache/$1" \
--cache-to="type=local,dest=/tmp/.buildx-cache-new/$1" \
--file "$3" \
--load "$4" \
&
}
mkdir -p /tmp/.buildx-cache-new
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment