Skip to content

Commit

Permalink
Clear cacue by moving its content
Browse files Browse the repository at this point in the history
This is a workaround for a known problem docker/build-push-action#252
  • Loading branch information
nkuba committed Aug 8, 2022
1 parent c64218c commit 65f72de
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/docker-build-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,14 @@ runs:
push: ${{ env.PUSH == 'true' }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

- # Temp fix - move cache instead of copying (added below step and
# modified value of `cache-to`).
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
# Without the change some jobs were failing with `no space left on device`
name: Move cache
shell: bash
run: |
rm -rf /tmp/.buildx-relay-cache
mv /tmp/.buildx-relay-cache-new /tmp/.buildx-relay-cache

0 comments on commit 65f72de

Please sign in to comment.