From 048759a12556848fa152f6fbe2a059dad627e394 Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Mon, 18 Mar 2019 16:50:23 -0700 Subject: [PATCH] fix logic in determining when to pull images --- actions/runner_exec.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/actions/runner_exec.go b/actions/runner_exec.go index 1bd7aaa..f8289f5 100644 --- a/actions/runner_exec.go +++ b/actions/runner_exec.go @@ -53,12 +53,13 @@ func (runner *runnerImpl) addImageExecutor(action *model.Action, executors *[]co pull := runner.config.ForcePull if !pull { imageExists, err := container.ImageExistsLocally(runner.config.Ctx, image) + log.Debugf("Image exists? %v", imageExists) if err != nil { return "", fmt.Errorf("unable to determine if image already exists for image %q", image) } - if imageExists { - pull = false + if !imageExists { + pull = true } }