forked from Ivasoft/drone-docker
This commit is contained in:
@@ -195,7 +195,7 @@ func (p Plugin) Exec() error {
|
||||
cmds = append(cmds, commandBuild(p.Build)) // docker build
|
||||
|
||||
if p.Build.IsPlugin {
|
||||
cmds = append(cmds, exec.Command("mkdir", "plugin/rootfs"))
|
||||
cmds = append(cmds, exec.Command("mkdir", "-p", "plugin/rootfs"))
|
||||
cmds = append(cmds, exec.Command(dockerExe, "save", "-o", "tmp.tar", p.Build.Name))
|
||||
cmds = append(cmds, exec.Command(dockerExe, "image", "rm", p.Build.Name))
|
||||
cmds = append(cmds, exec.Command("tar", "x", "-C", "plugin/rootfs", "-f", "tmp.tar"))
|
||||
|
||||
Reference in New Issue
Block a user