Skip to content

Commit d758cb8

Browse files
authored
GH-47509: [CI][Packaging][Linux] Enable Docker build cache (#47510)
### Rationale for this change We need `--build-arg BUILDKIT_INLINE_CACHE=1` to embed cache information to built images. If we don't use this, `--cache-from` doesn't work. ### What changes are included in this PR? Add missing `--build-arg BUILDKIT_INLINE_CACHE=1. ### Are these changes tested? No. We need to push built images to test this but we push built images after this is merged. ### Are there any user-facing changes? No. * GitHub Issue: #47509 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent 359a600 commit d758cb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dev/tasks/linux-packages/package-task.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def docker_run(os, architecture, console: false)
120120
build_command_line = [
121121
"docker",
122122
"build",
123+
"--build-arg", "BUILDKIT_INLINE_CACHE=1",
123124
"--cache-from", image,
124125
"--tag", image,
125126
]

0 commit comments

Comments
 (0)