uraimo / run-on-arch-action

A Github Action that executes jobs/commands on non-x86 cpu architectures (ARMv6, ARMv7, aarch64, s390x, ppc64le, riscv64) via QEMU
BSD 3-Clause "New" or "Revised" License
682 stars 151 forks source link

Fix reusing cached Docker image #139

Closed gamer191 closed 10 months ago

gamer191 commented 10 months ago

This PR passes --build-arg BUILDKIT_INLINE_CACHE=1 to Docker Fixes https://github.com/uraimo/run-on-arch-action/issues/132 Based on https://github.com/kleisauke/libvips-packaging/commit/e0b8d3218bc79f4f333280b8cb907169dccd6af8:

GitHub Actions has upgraded Docker to version 23, now employing BuildKit as the default builder in place of the legacy builder: https://github.com/actions/runner-images/pull/8003 However, BuildKit doesn't include the information needed to reuse images for caching. Use the --build-arg BUILDKIT_INLINE_CACHE=1 flag to fix this.

Thanks @bashonly for finding that commit, and @grub4k for helping me debug my PR

uraimo commented 10 months ago

Thanks @gamer191, @Grub4K and @bashonly for taking the time to look into this. I agree, this is very likely going to fix it.