1
0
mirror of https://github.com/drone/drone-cli.git synced 2024-11-23 17:22:09 +01:00

Merge pull request #21 from thomasf/pull-drone-exec

Pull drone exec image on --pull argument
This commit is contained in:
Brad Rydzewski 2016-01-30 12:49:53 -08:00
commit ef32fb5721

@ -136,6 +136,15 @@ func execCmd(c *cli.Context) error {
execArgs = append(execArgs, "--"+arg)
}
}
if c.Bool("pull") {
image := "drone/drone-exec:latest"
color.Magenta("[DRONE] pulling %s", image)
err := cli.PullImage(image, nil)
if err != nil {
color.Red("[DRONE] failed to pull %s", image)
os.Exit(1)
}
}
proj := resolvePath(pwd)