We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93abe12 commit 734ca08Copy full SHA for 734ca08
.github/workflows/main.yml
@@ -44,9 +44,9 @@ jobs:
44
run: |
45
New-Item -Path build.log -ItemType File -Force
46
docker build --cache-from app:latest -f docker/mount.dockerfile -t app:latest . | Tee-Object -FilePath build.log
47
- $total_steps = (Get-Content build.log | Select-String -Pattern '^Step [0-9]+/' | Measure-Object).Count
48
$cache_hits = (Get-Content build.log | Select-String -Pattern '---> Using cache' | Measure-Object).Count
49
- if ($cache_hits -eq $total_steps) {
+ $steps_with_cache = (Get-Content build.log | Select-String -Pattern '^Step [0-9]+/' | Where-Object { $_ -notmatch 'FROM' } | Measure-Object).Count
+ if ($cache_hits -eq $steps_with_cache) {
50
echo "FULL_CACHE_HIT=true" >> $env:GITHUB_ENV
51
Write-Host "Full cache hit, all layers were used from source cache."
52
} else {
0 commit comments