Skip to content

Commit

Permalink
Update cache configuration in build-and-test-job workflow
Browse files Browse the repository at this point in the history
The commit changes the 'cache-from' and 'cache-to' parameters in the GitHub action workflow file, build-and-test-job.yml. The updated configuration points to the correct cache source, aiming for an optimized cache handling, and thereby improving the efficiency of the workflow. These changes should reduce unnecessary cache downloads and provide faster build times.
  • Loading branch information
nbejansen committed Feb 6, 2024
1 parent 89be2f1 commit a9a577b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
load: true
target: ${{ inputs.target }}
tags: ghcr.io/sitepilot/php-${{ inputs.target }}:build
cache-from: ghcr.io/sitepilot/php-${{ inputs.target }}:${{ matrix.php }}-1.x
#cache-to: type=gha,mode=max,scope=php-${{ inputs.target }}-${{ matrix.php }}
cache-from: type=gha,scope=php-${{ inputs.target }}-${{ matrix.php }}
cache-to: type=gha,mode=max,scope=php-${{ inputs.target }}-${{ matrix.php }}
build-args: |
PHP_VERSION=${{ matrix.php }}
Expand All @@ -76,8 +76,8 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64, linux/arm64
cache-from: ghcr.io/sitepilot/php-${{ inputs.target }}:${{ matrix.php }}-1.x
#cache-to: type=gha,mode=max,scope=php-${{ inputs.target }}-${{ matrix.php }}
cache-from: type=gha,scope=php-${{ inputs.target }}-${{ matrix.php }}
cache-to: type=gha,mode=max,scope=php-${{ inputs.target }}-${{ matrix.php }}
provenance: false
build-args: |
PHP_VERSION=${{ matrix.php }}

0 comments on commit a9a577b

Please sign in to comment.