1
0
Fork 0
mirror of https://github.com/drone/drone-cli.git synced 2024-05-23 15:36:03 +02:00

Merge pull request #52 from jmccann/fix_volumes

Add mounting drone_default to workspaceBase before mounting git repo
This commit is contained in:
Brad Rydzewski 2017-06-29 10:53:31 -04:00 committed by GitHub
commit a785895ab0

View File

@ -327,6 +327,7 @@ func exec(c *cli.Context) error {
workspacePath = c.String("workspace-path")
}
dir, _ := filepath.Abs(filepath.Dir(file))
volumes = append(volumes, c.String("prefix")+"_default:"+workspaceBase)
volumes = append(volumes, dir+":"+path.Join(workspaceBase, workspacePath))
}