Propagate env file for webapp deployment (#669)

This commit is contained in:
dboreham authored and GitHub committed 2023-11-28 21:14:02 -07:00
1 parent 1a069a6816
commit 113c0bfbf1
6 files changed
+33 -15

No files matched your search

+6
View File
@@ -18,6 +18,8 @@ import os.path
import sys
import ruamel.yaml
from pathlib import Path
from dotenv import dotenv_values
from typing import Mapping
def include_exclude_check(s, include, exclude):
@@ -178,3 +180,7 @@ def global_options2(ctx):
def error_exit(s):
print(f"ERROR: {s}")
sys.exit(1)
def env_var_map_from_file(file: Path) -> Mapping[str, str]:
return dotenv_values(file)