Skip to content

Commit b99d881

Browse files
authored
feat: pass env variables to container (#282)
1 parent bf08390 commit b99d881

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

openhexa/sdk/pipelines/utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,9 @@ def get_local_workspace_config(path: Path):
172172
if "image" in local_workspace_config:
173173
env_vars["WORKSPACE_DOCKER_IMAGE"] = local_workspace_config["image"]
174174

175+
# Additional environment variables
176+
if "env" in local_workspace_config:
177+
for key, value in local_workspace_config["env"].items():
178+
env_vars[key] = str(value)
179+
175180
return env_vars

0 commit comments

Comments
 (0)