mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
Fix podman build "newer" pull policy
It's currently ignored. Fixes: #22845 Signed-off-by: Zifei Tong <zifeitong@gmail.com>
This commit is contained in:
@@ -324,6 +324,10 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *Buil
|
|||||||
pullPolicy = buildahDefine.PullNever
|
pullPolicy = buildahDefine.PullNever
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.EqualFold(strings.TrimSpace(flags.Pull), "newer") {
|
||||||
|
pullPolicy = buildahDefine.PullIfNewer
|
||||||
|
}
|
||||||
|
|
||||||
var cleanTmpFile bool
|
var cleanTmpFile bool
|
||||||
flags.Authfile, cleanTmpFile = buildahUtil.MirrorToTempFileIfPathIsDescriptor(flags.Authfile)
|
flags.Authfile, cleanTmpFile = buildahUtil.MirrorToTempFileIfPathIsDescriptor(flags.Authfile)
|
||||||
if cleanTmpFile {
|
if cleanTmpFile {
|
||||||
|
|||||||
Reference in New Issue
Block a user