CI: fix "--import-cache" deprecation warnings

I noticed these warnings in CI logs;

    +buildctl build --progress=plain --frontend=dockerfile.v0 --opt context=git://github.com/moby/buildkit#refs/pull/1482/merge --opt build-arg:BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 --opt platform=linux/amd64,linux/arm/v7,linux/arm64,linux/s390x,linux/ppc64le,darwin/amd64,windows/amd64 --import-cache cicache.buildk.it/moby/buildkit/master:binaries-cross-helper
    WARN[0000] --import-cache <ref> is deprecated. Please use --import-cache type=registry,ref=<ref>,<opt>=<optval>[,<opt>=<optval>] instead.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
v0.8
Sebastiaan van Stijn 2020-05-13 16:49:52 +02:00
parent b67f93529b
commit c34699f8dd
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
2 changed files with 4 additions and 4 deletions

View File

@ -31,5 +31,5 @@ buildctl build $progressFlag --frontend=dockerfile.v0 \
buildctl build $progressFlag --frontend=dockerfile.v0 \ buildctl build $progressFlag --frontend=dockerfile.v0 \
$currentcontextBuildctl \ $currentcontextBuildctl \
--opt target=integration-tests-base \ --opt target=integration-tests-base \
--import-cache cicache.buildk.it/moby/buildkit/master:integration-tests \ --import-cache type=registry,ref=cicache.buildk.it/moby/buildkit/master:integration-tests \
$exportCacheFlags $exportFlags:integration-tests $exportCacheFlags $exportFlags:integration-tests

View File

@ -18,16 +18,16 @@ buildctl build $progressFlag --frontend=dockerfile.v0 \
$currentcontextBuildctl \ $currentcontextBuildctl \
--opt target=binaries-linux-helper \ --opt target=binaries-linux-helper \
--opt platform=$RUNC_PLATFORMS \ --opt platform=$RUNC_PLATFORMS \
--import-cache cicache.buildk.it/moby/buildkit/master:binaries-cross-helper \ --import-cache type=registry,ref=cicache.buildk.it/moby/buildkit/master:binaries-cross-helper \
--export-cache type=inline --output type=image,push=true,name=$repo:binaries-cross-helper --export-cache type=inline --output type=image,push=true,name=$repo:binaries-cross-helper
fi fi
buildctl build --progress=plain --frontend=dockerfile.v0 \ buildctl build --progress=plain --frontend=dockerfile.v0 \
$currentcontextBuildctl \ $currentcontextBuildctl \
--opt platform=$PLATFORMS \ --opt platform=$PLATFORMS \
--import-cache cicache.buildk.it/moby/buildkit/master:binaries-cross-helper --import-cache type=registry,ref=cicache.buildk.it/moby/buildkit/master:binaries-cross-helper
buildctl build --progress=plain --frontend=dockerfile.v0 \ buildctl build --progress=plain --frontend=dockerfile.v0 \
$currentcontextBuildctl \ $currentcontextBuildctl \
--opt platform=windows/amd64 --opt target=buildkit-buildkitd \ --opt platform=windows/amd64 --opt target=buildkit-buildkitd \
--import-cache cicache.buildk.it/moby/buildkit/master:binaries --import-cache type=registry,ref=cicache.buildk.it/moby/buildkit/master:binaries