-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to complete build for a multi-stage Dockerfile when using caching #259
Comments
@jamesdh Thanks for your report. Remove Also can you update the - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
version: latest
buildkitd-flags: --debug |
@crazy-max yea I just caught that after this last build. Thanks for the fast response! Oddly enough, I just gave this another go but after removing with:
install: true ...from the setup-buildx-action, and that time it worked. Then after rerunning the job, it correctly retrieved the layers for the entire docker image, not needing to build a single one, but again it appears frozen at "preparing build cache for export done" |
Something I just noticed though from the build that appeared to have finished was this error message at the end:
|
@jamesdh Have you tried with my suggestion? Do you have a link to your repo for repro please? |
Yea, I added those flags but it didn't appear to add much info:
Unfortunately it's a private repo, but I might try pushing something similar to a public one if I have time today |
Fyi,
Have you tried with the recommended values for
Yes please |
That's the intent. Without it, not sure there's much purpose to using a multi-stage build. I have stages for resolving dependencies which is easily the most time consuming part. They don't change that often, so re-resolving them every time is eating up my clock. Yes I could cache them external from the Dockerfile and then COPY them into the image during build time, but I've been bitten in the past due to platform specific resolution issues and would prefer to keep them resolved by the platform that the final binary will be running within.
Yes, just tried w/ |
Behaviour
Unable to complete the build for a multi-stage Dockerfile, regardless if registry (GitHub Container Registry) or local (actions/cache@v2) cache is used. No error, the process just freezes after "preparing build cache for export" finishes. Build works just fine if the cache arguments are removed. Adding debug flag doesn't appear to show any additional information.
Steps to reproduce this issue
Expected behaviour
Cache export finishes, remainder of workflow completes, and subsequent builds are able to utilize the cache to speed up docker build times
Actual behaviour
Jobs become "stuck" after "preparing build cache for export x.xs done" and never complete until manually terminated.
Configuration
Logs
The text was updated successfully, but these errors were encountered: