Merge pull request #1032 from shuckc/main

Revert "Use defined environment variables in the image build process"
This commit is contained in:
Povilas Kanapickas 2024-09-07 00:13:36 +03:00 committed by GitHub
commit 229650cba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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((