Skip to content

Commit

Permalink
Disable Docker cache for some images to avoid timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
crashdev226 committed Jan 17, 2023
1 parent e088003 commit 322a40c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,21 @@ jobs:
# Cache Docker layers in GitHub Actions cache, scoped per image
# https://github.com/docker/bake-action/issues/87#issuecomment-1184659151
# 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:
# nor do we cache all images because it creates a huge number of cache requests
# 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 }}
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 }}
php.cache-to=type=gha,scope=${{ matrix.cpu }}-php-${{ matrix.php_version }}
php-fpm.cache-from=type=gha,scope=${{ matrix.cpu }}-php-fpm-${{ matrix.php_version }}
php-fpm.cache-to=type=gha,scope=${{ matrix.cpu }}-php-fpm-${{ matrix.php_version }}
fpm-internal-src.cache-from=type=gha,scope=${{ matrix.cpu }}-fpm-internal-src-${{ matrix.php_version }}
fpm-internal-src.cache-to=type=gha,scope=${{ matrix.cpu }}-fpm-internal-src-${{ matrix.php_version }}
console.cache-from=type=gha,scope=${{ matrix.cpu }}-console-${{ matrix.php_version }}
console.cache-to=type=gha,scope=${{ matrix.cpu }}-console-${{ matrix.php_version }}
php-fpm-dev.cache-from=type=gha,scope=${{ matrix.cpu }}-php-fpm-dev-${{ matrix.php_version }}
php-fpm-dev.cache-to=type=gha,scope=${{ matrix.cpu }}-php-fpm-dev-${{ matrix.php_version }}
- run: docker image ls

- name: Test that layers can be exported
run: |
make -f cpu-${{ matrix.cpu }}.Makefile layer-php-${{ matrix.php_version }}
Expand Down

0 comments on commit 322a40c

Please sign in to comment.