From 65f885e47876fc490edcb96a4f75975aa0a9d9cb Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 29 Sep 2015 23:10:58 -0700 Subject: [PATCH] auto pull images --- engine/worker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/worker.go b/engine/worker.go index 43d427ab0..7cc61a558 100644 --- a/engine/worker.go +++ b/engine/worker.go @@ -15,13 +15,13 @@ var ( DefaultEntrypoint = []string{"/bin/drone-exec"} // default argument to invoke build steps - DefaultBuildArgs = []string{"--cache", "--debug", "--clone", "--build", "--deploy"} + DefaultBuildArgs = []string{"--pull", "--cache", "--debug", "--clone", "--build", "--deploy"} // default argument to invoke build steps DefaultPullRequestArgs = []string{"--cache", "--clone", "--build"} // default arguments to invoke notify steps - DefaultNotifyArgs = []string{"--notify"} + DefaultNotifyArgs = []string{"--pull", "--notify"} ) type worker struct { @@ -60,7 +60,7 @@ func (w *worker) Build(name string, stdin []byte, pr bool) (_ int, err error) { // TEMPORARY: always try to pull the new image for now // since we'll be frequently updating the build image // for the next few weeks - // w.client.PullImage(conf.Image, nil) + w.client.PullImage(conf.Image, nil) w.build, err = docker.Run(w.client, conf, name) if err != nil {