mirror of
https://github.com/drone/drone-cli.git
synced 2024-09-22 03:40:48 +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:
commit
a785895ab0
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user