mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-23 00:13:25 +01:00
FiXES #393: missing arg when build as part of run
This commit is contained in:
parent
a1be5ce6b3
commit
0f9fe2bf9f
@ -1347,7 +1347,7 @@ def build_one(compose, args, cnt):
|
||||
if "target" in build_desc:
|
||||
build_args.extend(["--target", build_desc["target"]])
|
||||
container_to_ulimit_args(cnt, build_args)
|
||||
if args.no_cache:
|
||||
if getattr(args, 'no_cache', None):
|
||||
build_args.append("--no-cache")
|
||||
if getattr(args, 'pull_always', None): build_args.append("--pull-always")
|
||||
elif getattr(args, 'pull', None): build_args.append("--pull")
|
||||
|
Loading…
Reference in New Issue
Block a user