You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run podman-compose build podman-compose build test-image
Expected behavior
podman-compose should have access to the environment variables set on the host/container it is running in and pass them along.
Actual behavior
podman-compose fails at parsing the yaml file.
Output
$ podman-compose -v
podman-compose version 1.2.0
podman version 4.9.4-rhel
$ podman-compose build test-image
Traceback (most recent call last):
File "/usr/local/bin/podman-compose", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/podman_compose.py", line 3504, in main
asyncio.run(async_main())
File "/usr/lib64/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib64/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/site-packages/podman_compose.py", line 3500, in async_main
await podman_compose.run()
File "/usr/local/lib/python3.9/site-packages/podman_compose.py", line 1743, in run
retcode = await cmd(self, args)
File "/usr/local/lib/python3.9/site-packages/podman_compose.py", line 2422, in compose_build
s = await t
File "/usr/lib64/python3.9/asyncio/tasks.py", line 611, in _wait_for_one
return f.result() # May raise f.exception().
File "/usr/local/lib/python3.9/site-packages/podman_compose.py", line 2376, in build_one
build_args.extend(get_secret_args(compose, cnt, secret, podman_is_building=True))
File "/usr/local/lib/python3.9/site-packages/podman_compose.py", line 646, in get_secret_args
raise ValueError(
ValueError: ERROR: unparsable secret: "proxy_api_token", service: "test-image"
Environment:
OS: Linux
podman version: 4.9.4-rhel
podman compose version: 1.2.0
The text was updated successfully, but these errors were encountered:
Describe the bug
When using
podman-compose build
it errors out on having any secrets defines asenvironment:
. This is supported in the compose specTo Reproduce
Steps to reproduce the behavior:
podman-compose build test-image
Expected behavior
podman-compose should have access to the environment variables set on the host/container it is running in and pass them along.
Actual behavior
podman-compose fails at parsing the yaml file.
Output
Environment:
The text was updated successfully, but these errors were encountered: