From 4ba263411ec08375a157993bb0275872186d629c Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Tue, 17 Jan 2023 14:28:39 +0100 Subject: [PATCH] Disable Docker cache mode=max entirely in GitHub Actions to avoid timeouts May be related to https://github.com/docker/buildx/issues/841 and https://github.com/moby/buildkit/issues/2804 --- .github/workflows/tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e0b62c6d..0b9092ad 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }}