enable trusted builds to do their thing

This commit is contained in:
Brad Rydzewski 2015-05-15 19:41:22 -07:00
parent 35c66c7b76
commit e66bb6bace

View file

@ -27,6 +27,13 @@ type Context struct {
func setup(c *Context) error {
var err error
var opts = parser.DefaultOpts
// if repository is trusted the build may specify
// custom volumes, networking and run in trusted mode.
if c.Repo.Trusted {
opts = &parser.Opts{true, true, true}
}
// inject the matrix parameters into the yaml
injected := inject.Inject(string(c.Yaml), c.Build.Environment)