Skip to content

Commit

Permalink
Disable Docker cache mode=max entirely in GitHub Actions to avoid tim…
Browse files Browse the repository at this point in the history
…eouts

May be related to docker/buildx#841 and moby/buildkit#2804
  • Loading branch information
crashdev226 committed Jan 17, 2023
1 parent 0068391 commit 0098aee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ jobs:
load: true
# Cache Docker layers in GitHub Actions cache, scoped per image
# https://github.com/docker/bake-action/issues/87#issuecomment-1184659151
# We use `mode=max` (cache ALL layers instead of just tags) only on specific images
# else it creates a huge cache and we get GitHub Actions cache timeouts.
# We unfortunately don't use `mode=max` (which caches ALL layers instead of just tags)
# because it creates a huge cache and we get GitHub Actions cache timeouts:
# https://github.com/moby/buildkit/issues/2804
set: |
base-devel.cache-from=type=gha,scope=base-devel-${{ matrix.cpu }}
base-devel.cache-to=type=gha,scope=base-devel-${{ matrix.cpu }},mode=max
base-devel.cache-to=type=gha,scope=base-devel-${{ matrix.cpu }}
build-php.cache-from=type=gha,scope=build-${{ matrix.cpu }}-php-${{ matrix.php_version }}
build-php.cache-to=type=gha,scope=build-${{ matrix.cpu }}-php-${{ matrix.php_version }}
php.cache-from=type=gha,scope=${{ matrix.cpu }}-php-${{ matrix.php_version }}
Expand Down

0 comments on commit 0098aee

Please sign in to comment.