mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-08 16:45:30 +00:00
Do not set Pod's Image pull policy if not explicitly set (#1914)
This commit is contained in:
parent
b4acbafffc
commit
cef135eba5
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ func Pod(namespace string, step *types.Step, labels, annotations map[string]stri
|
|||
}
|
||||
}
|
||||
|
||||
pullPolicy := v1.PullIfNotPresent
|
||||
var pullPolicy v1.PullPolicy
|
||||
if step.Pull {
|
||||
pullPolicy = v1.PullAlways
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue