mount working dir with drone exec

This commit is contained in:
Brad Rydzewski
2019-10-24 16:06:57 -07:00
parent 5dc0de0e14
commit f54c3463cb
8 changed files with 257 additions and 110 deletions

View File

@@ -128,6 +128,14 @@ func (c *execCommand) run(*kingpin.ParseContext) error {
registry.File(c.Config),
),
}
// when running a build locally cloning is always
// disabled in favor of mounting the source code
// from the current working directory.
if c.Clone == false {
comp.Mount, _ = os.Getwd()
}
args := compiler.Args{
Pipeline: resource,
Manifest: manifest,