Commit e8741c7a authored by José Henrique's avatar José Henrique
Browse files

Mount project_dir into notifier container

parent 14766b16
......@@ -16,7 +16,6 @@ build_env_vars = {}
for k in ["device", "version", "production", "eng_build",
"wip_branch", "repopick",
"CI_RUNNER_DESCRIPTION", "CI_JOB_URL", "CI_PIPELINE_ID",
"CI_PROJECT_DIR",
"build_repo_url", "build_repo_branch"]:
if os.getenv(k):
build_env_vars[k] = os.getenv(k)
......@@ -82,6 +81,7 @@ if not os.path.exists(build_env_vars["ccache_dir"]):
os.makedirs(build_env_vars["ccache_dir"])
build_env_vars["runner_name"] = build_env_vars["CI_RUNNER_DESCRIPTION"]
build_env_vars["project_dir"] = os.getcwd()
build_env_vars["post_build_dir"] = os.path.abspath(
"post_build_" + build_env_vars["device"] + "_" + build_env_vars["version"]
)
......
......@@ -128,6 +128,9 @@ def start_notifier(environment_vars):
},
environment_vars["build_data_dir"]: {
"bind": "/mnt/roms/data", "mode": "rw"
},
environment_vars["project_dir"]: {
"bind": environment_vars["project_dir"], "mode": "rw"
}
}
pull_image(image_name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment