Skip to content
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

Update docker build action to fix caching issue #868

Open
FreezyLemon opened this issue Aug 18, 2024 · 0 comments
Open

Update docker build action to fix caching issue #868

FreezyLemon opened this issue Aug 18, 2024 · 0 comments

Comments

@FreezyLemon
Copy link
Contributor

There's a note about a "temp fix" in the GHA workflow file:

- name: Build
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: false
tags: av1an:action
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Move cache
# Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

The linked issue hasn't really seen any action since 2021, maybe 2020, but there are some alternative solutions listed. I think one of the solutions in the issue can be used instead, but I'm not familiar enough with Docker to say for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant