temporarily disable caching for public repos until we understand more
This commit is contained in:
parent
0c4c5d81a9
commit
e31b53f688
1 changed files with 3 additions and 6 deletions
|
@ -44,12 +44,9 @@ func setup(c *Context) error {
|
|||
opts.Volumes = true
|
||||
opts.Caching = true
|
||||
}
|
||||
// if repository is public, and a pull request, disable
|
||||
// the cache.
|
||||
if c.Repo.Private == false &&
|
||||
c.Build.PullRequest != nil &&
|
||||
c.Build.PullRequest.Number != 0 {
|
||||
opts.Caching = false
|
||||
// if repository is private enable caching
|
||||
if c.Repo.Private {
|
||||
opts.Caching = true
|
||||
}
|
||||
|
||||
// inject the matrix parameters into the yaml
|
||||
|
|
Loading…
Reference in a new issue