Skip to content

Commit

Permalink
Update cache reference in build-and-test-job
Browse files Browse the repository at this point in the history
This commit updates the 'cache-from' parameter in the build-and-test-job.yml workflow file. The aim is to specifically target the proper cache source, thereby optimizing cache handling. The 'cache-to' remains commented, pending potential future use.
  • Loading branch information
nbejansen committed Feb 6, 2024
1 parent 6e85206 commit 89be2f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ 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
cache-from: ghcr.io/sitepilot/php-${{ inputs.target }}:${{ matrix.php }}-1.x
#cache-to: type=gha,mode=max,scope=php-${{ inputs.target }}-${{ matrix.php }}
build-args: |
PHP_VERSION=${{ matrix.php }}
Expand All @@ -76,7 +76,7 @@ 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
cache-from: ghcr.io/sitepilot/php-${{ inputs.target }}:${{ matrix.php }}-1.x
#cache-to: type=gha,mode=max,scope=php-${{ inputs.target }}-${{ matrix.php }}
provenance: false
build-args: |
Expand Down

0 comments on commit 89be2f1

Please sign in to comment.