Skip to content

Commit

Permalink
buildx compile $cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Oct 15, 2023
1 parent 5601931 commit df2b756
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ubt-core/buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ case "$1" in
compile)
repo=registry-1.docker.io
img="docker-headless:core-compile"
# cache
ali="registry.cn-shenzhen.aliyuncs.com"
cimg="docker-headless-cache:core-compile"
cache="--cache-from type=registry,ref=$ali/$ns/$cimg --cache-to type=registry,ref=$ali/$ns/$cimg"

plat="--platform linux/amd64,linux/arm64,linux/arm" #,linux/arm
# plat="--platform linux/arm"
# --network=host: docker buildx create --use --name mybuilder2 --buildkitd-flags '--allow-insecure-entitlement network.host'
docker buildx build $plat --push -t $ns/$img -f src/Dockerfile.compile .
docker buildx build $cache $plat --push -t $ns/$img -f src/Dockerfile.compile .
;;
compile2)
# TigerVNC 1.12.0 |10 Nov 2021
Expand Down

0 comments on commit df2b756

Please sign in to comment.