Fix update generated files via docker buildkit

Signed-off-by: Edgar Lee <edgarl@netflix.com>
v0.7
Edgar Lee 2019-10-31 16:49:25 -07:00
parent fdd2f9b660
commit bb0ed03111
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ case $buildmode in
cp -R "$output/generated-files/" . cp -R "$output/generated-files/" .
rm -rf $output rm -rf $output
;; ;;
"docker-buildkt") "docker-buildkit")
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX) iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
export DOCKER_BUILDKIT=1 export DOCKER_BUILDKIT=1
docker build --build-arg GOGO_VERSION=$gogo_version --iidfile $iidfile -f ./hack/dockerfiles/generated-files.Dockerfile --target update --force-rm . docker build --build-arg GOGO_VERSION=$gogo_version --iidfile $iidfile -f ./hack/dockerfiles/generated-files.Dockerfile --target update --force-rm .