[X] The documentation does not mention anything about my problem
[X] There are no open or closed issues that are related to my problem
Description
The Docker buildx builder cannot access files downloaded from GHA artifacts. Here's my minimal reproduction:
Dockerfile.test
FROM scratch AS controller
COPY dist/artifacts/test /tmp/test
With this configuration, I have a job called build-test that creates and uploads artifacts. The second job called build-image downloads the artifacts to dist/artifacts and then attempts to build a Docker image using this build-push-action.
Expected behaviour
The copy should work just fine, like any other copy.
Actual behaviour
The Docker build fails with the following error:
#4 [1/1] COPY dist/artifacts/test /tmp/test
#4 ERROR: failed to calculate checksum of ref 714cs4nh3dvawerm1x67d1u8b::jzalluzhqlppqyyofx3nhgrp9: failed to walk /tmp/buildkit-mount2093046158/dist/artifacts: lstat /tmp/buildkit-mount2093046158/dist/artifacts: no such file or directory
------
> [1/1] COPY dist/artifacts/test /tmp/test:
------
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile.test:2
--------------------
1 | FROM scratch AS controller
2 | >>> COPY dist/artifacts/test /tmp/test
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 714cs4nh3dvawerm1x67d1u8b::jzalluzhqlppqyyofx3nhgrp9: failed to walk /tmp/buildkit-mount2093046[158](https://github.com/bfbachmann/system-upgrade-controller/actions/runs/9393343783/job/25869234593#step:9:163)/dist/artifacts: lstat /tmp/buildkit-mount2093046158/dist/artifacts: no such file or directory
Contributing guidelines
I've found a bug, and:
Description
The Docker buildx builder cannot access files downloaded from GHA artifacts. Here's my minimal reproduction:
Dockerfile.test
With this configuration, I have a job called
build-test
that creates and uploads artifacts. The second job calledbuild-image
downloads the artifacts todist/artifacts
and then attempts to build a Docker image using thisbuild-push-action
.Expected behaviour
The copy should work just fine, like any other copy.
Actual behaviour
The Docker build fails with the following error:
Repository URL
https://github.com/bfbachmann/system-upgrade-controller
Workflow run URL
https://github.com/bfbachmann/system-upgrade-controller/actions/runs/9393404514
YAML workflow
Workflow logs
logs_24585592087.zip
BuildKit logs
No response
Additional info
No response