Skip to content

Commit ccfe0f8

Browse files
committed
temp fix
1 parent 6ee46e7 commit ccfe0f8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

podman_compose.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3734,6 +3734,16 @@ async def compose_up(compose: PodmanCompose, args: argparse.Namespace) -> int |
37343734
log.error("Prepare images failed")
37353735
if not args.dry_run:
37363736
return exit_code
3737+
else:
3738+
log.info("building images: ...")
3739+
3740+
if not args.no_build:
3741+
# `podman build` does not cache, so don't always build
3742+
build_args = argparse.Namespace(if_not_exists=(not args.build), **args.__dict__)
3743+
build_exit_code = await compose.commands["build"](compose, build_args)
3744+
if build_exit_code != 0:
3745+
log.error("Build command failed")
3746+
return build_exit_code
37373747

37383748
# if needed, tear down existing containers
37393749

0 commit comments

Comments
 (0)