diff --git a/scripts/build_release.sh b/scripts/build_release.sh index 4eb6821..312243e 100755 --- a/scripts/build_release.sh +++ b/scripts/build_release.sh @@ -29,7 +29,7 @@ function build_target { --target "$target" \ --tag "$target_tag" \ --build-arg BUILDKIT_INLINE_CACHE=1 \ - --cache-from $latest_tag \ + --cache-from $latest_target_tag \ --file "$TMP/build_release.Dockerfile" . docker tag "$target_tag" "$latest_target_tag" } @@ -37,6 +37,10 @@ function build_target { build_target "deps" build_target "builder" -docker build -t "$tag" --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $latest_tag -f "$TMP/build_release.Dockerfile" . +docker build \ + -t "$tag" \ + --build-arg BUILDKIT_INLINE_CACHE=1 \ + --cache-from $latest_tag \ + -f "$TMP/build_release.Dockerfile" . docker tag "$tag" "$latest_tag"