mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
fix: docker buildx cache restore not working
This commit is contained in:
parent
ba102368d3
commit
f147e45da3
1 changed files with 5 additions and 0 deletions
|
@ -431,7 +431,12 @@ func findCache(db *bolthold.Store, repo string, keys []string, version string) (
|
||||||
return nil, fmt.Errorf("find cache: %w", err)
|
return nil, fmt.Errorf("find cache: %w", err)
|
||||||
}
|
}
|
||||||
return cache, nil
|
return cache, nil
|
||||||
|
} else if cache.Complete {
|
||||||
|
return cache, nil
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, prefix := range keys {
|
||||||
prefixPattern := fmt.Sprintf("^%s", regexp.QuoteMeta(prefix))
|
prefixPattern := fmt.Sprintf("^%s", regexp.QuoteMeta(prefix))
|
||||||
re, err := regexp.Compile(prefixPattern)
|
re, err := regexp.Compile(prefixPattern)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue