mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-09 17:15:31 +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 {
|
if step.Pull {
|
||||||
pullPolicy = v1.PullAlways
|
pullPolicy = v1.PullAlways
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue