allow registry URL to be configurable

This commit is contained in:
zramsay 2023-04-03 16:16:09 -04:00
parent 4da69ebf4c
commit 2f277e36aa

View File

@ -79,9 +79,8 @@ def command(ctx, include, exclude):
if stack:
print(f"Stack: {stack}")
# TODO: make this configurable
container_build_env = {
"CERC_NPM_URL": "http://gitea.local:3000/api/packages/cerc-io/npm/",
"CERC_NPM_URL": config("CERC_NPM_URL", default="http://gitea.local:3000/api/packages/cerc-io/npm/"),
"CERC_NPM_AUTH_TOKEN": config("CERC_NPM_AUTH_TOKEN", default="<token-not-supplied>"),
"CERC_REPO_BASE_DIR": dev_root_path,
"CERC_HOST_UID": f"{os.getuid()}",