mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-05 12:49:05 +00:00
temporarily disable caching for public repos until we understand more
This commit is contained in:
@@ -44,12 +44,9 @@ func setup(c *Context) error {
|
|||||||
opts.Volumes = true
|
opts.Volumes = true
|
||||||
opts.Caching = true
|
opts.Caching = true
|
||||||
}
|
}
|
||||||
// if repository is public, and a pull request, disable
|
// if repository is private enable caching
|
||||||
// the cache.
|
if c.Repo.Private {
|
||||||
if c.Repo.Private == false &&
|
opts.Caching = true
|
||||||
c.Build.PullRequest != nil &&
|
|
||||||
c.Build.PullRequest.Number != 0 {
|
|
||||||
opts.Caching = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// inject the matrix parameters into the yaml
|
// inject the matrix parameters into the yaml
|
||||||
|
Reference in New Issue
Block a user