File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ jobs:
36
36
if : env.CACHE_HIT != 'true'
37
37
shell : pwsh
38
38
run : |
39
- docker build -f docker/mount.dockerfile - t app:latest .
39
+ docker build -t app:latest .
40
40
41
41
- name : Build Image With Cache
42
42
if : env.CACHE_HIT == 'true'
43
43
shell : pwsh
44
44
run : |
45
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
46
+ docker build --cache-from app:latest -t app:latest . | Tee-Object -FilePath build.log
47
47
$cache_hits = (Get-Content build.log | Select-String -Pattern '---> Using cache' | Measure-Object).Count
48
48
$steps_with_cache = (Get-Content build.log | Select-String -Pattern '^Step [0-9]+/' | Where-Object { $_ -notmatch 'FROM' } | Measure-Object).Count
49
49
if ($cache_hits -eq $steps_with_cache) {
You can’t perform that action at this time.
0 commit comments