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:
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user