Skip to content

Commit

Permalink
Revert "Use defined environment variables in the image build process"
Browse files Browse the repository at this point in the history
This reverts commit 901adf4.
fixes #985 and #931
  • Loading branch information
shuckc committed Sep 6, 2024
1 parent eeefd37 commit 3299cc1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -2408,10 +2408,6 @@ async def build_one(compose, args, cnt):
build_args.append("--pull-always")
elif getattr(args, "pull", None):
build_args.append("--pull")
env = dict(cnt.get("environment", {}))
for name, value in env.items():
build_args += ["--env", f"{name}" if value is None else f"{name}={value}"]

args_list = norm_as_list(build_desc.get("args", {}))
for build_arg in args_list + args.build_arg:
build_args.extend((
Expand Down

0 comments on commit 3299cc1

Please sign in to comment.