hack: use caching for master deploy

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
v0.8
Tonis Tiigi 2020-07-28 19:58:58 -07:00
parent 995ae310c7
commit 70c2ab7f4d
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ image() {
--local context=. --local dockerfile=. \
--opt platform=$PLATFORMS \
--export-cache type=inline \
--import-cache type=registry,ref=$REPO:$TAG$tagLatest \
--output type=image,\"name=$REPO:$TAG$tagLatest\",$pushFlag
buildctl build $progressFlag --frontend=dockerfile.v0 \
@ -85,6 +86,7 @@ image() {
--opt target=rootless \
--opt platform=$PLATFORMS \
--export-cache type=inline \
--import-cache type=registry,ref=$REPO:$TAG-rootless$tagLatestRootless \
--output type=image,\"name=$REPO:$TAG-rootless$tagLatestRootless\",$pushFlag
}