Merge pull request #1612 from tonistiigi/deploy-cache

hack: use caching for master deploy
v0.8
Akihiro Suda 2020-07-29 13:55:08 +09:00 committed by GitHub
commit 4d27bf48d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}