-
Notifications
You must be signed in to change notification settings - Fork 607
GitHub Actions Cache - Docker Build #1345
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
Comments
I was able to bypass the error by setting UPD. |
If you look at the latest release for v6, it's pointing to 4.0.2 - Edit: @bradley-yoo-anrok good catch. The latest version of build-push-action is pinned to a deprecated version. I was under the impression that v4.* was okay from this notice: https://github.blog/changelog/2025-01-15-github-actions-ubuntu-20-runner-image-brownout-dates-and-other-breaking-changes/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down But that scope is obviously larger than the original notice now. |
@patbernard I do use |
yes we tried v6 and still got it as well |
I also tried V6 and am seeing this happen |
I think this is the package being used here. it says v4.0.0 should be good. |
if it helps I am using docker/setup-buildx-action@v3 as well |
I'm using the latest docker/setup-buildx-action@v3 which
and the builds are failing |
Buildkit v0.20+ recently upgraded GHA Cache support to v2: moby/buildkit#5683 But Github's deprecation notice shows version <4.0 will are being deprecated |
Anybody know if its possible to use runs-on instead? We like this cache way better |
this did not work for us. still the same failure |
Indeed - v0.20 upgrades to cache API v2, while cache <v4.0 is being deprecated - updated my comment |
It looks like what we need is docker/actions-toolkit to cut a new release (the latest release is using 4.0.2). See: docker/actions-toolkit#643 Then |
perhaps not as |
I think that did the trick. I ran the changes on a fork, and it worked for me: https://github.com/patbernard/build-push-action/tree/patbernard/update-cache-action-version E.g.
|
Are you sure it worked because the brownout just ended? |
I'm not sure now. 😢 I'll have to test again on April 8th if there's no other traction between now any then. I did test just the bump from 0.56 -> 0.57 and that still had the issue. So the only other test I did that was after the brown-out ended was using Edit: Looking at this https://npmdiff.dev/%40actions%2Fcache/4.0.2/4.0.3/, I really doubt the 4.0.3 version fixes this. Feeling more confident it only worked because the brownout concluded. |
If you have this issue you're likely using BuildKit < 0.20.0 or Buildx < v0.21.0 that don't support cache service v2. This can happen on self-hosted runners so to make sure you're using the latest version of Buildx, either update your self-hosted runner or set -
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: latest Also it would be good if someone can give a link to the workflow run so we can take a look or full logs of the workflow. |
I am using v0.20.2 of the buildkit, cached in our ECR:
This last step in my workflow is failing:
Am I using the wrong version of something? |
Check Buildx >= 0.21.0 as well: #1345 (comment) |
I can confirm, having same issue using buildx v0.22.0, buildkit v0.20.2, build-push-action v6 :( |
I stand corrected, was using buildx v0.20.0, trying now with v0.22.0 |
with buildx v0.22.0 it works |
Worked for me as well. @crazy-max Maybe setting the |
## Description Note about sunset of GitHub Cache service v1 on April 15th, 2025. ## Related issues or tickets * https://gh.io/gha-cache-sunset * docker/build-push-action#1345 * docker/setup-buildx-action#414 * moby/buildkit#5896 * actions/runner-images#11766 (comment) ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [x] Technical review - [x] Editorial review - [ ] Product review Signed-off-by: CrazyMax <[email protected]>
Note about sunset of GHA cache service v1 added to our docs: https://docs.docker.com/build/ci/github-actions/cache/#github-cache |
This legacy service is shutting down, effective April 15, 2025. Migrate to the new service ASAP
ERROR: This legacy service is shutting down, effective April 15, 2025. Migrate to the new service ASAP. For more information: https://gh.io/gha-cache-sunset
ERROR: failed to solve: This legacy service is shutting down, effective April 15, 2025. Migrate to the new service ASAP. For more information: https://gh.io/gha-cache-sunset
Reference
Check build summary support
The text was updated successfully, but these errors were encountered: