Add missing env

pull/10/head
Webber 2020-01-31 00:57:08 +01:00
parent bed5a6251d
commit 520e684b08
3 changed files with 18 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,13 @@ async function action() {
Action.checkCompatibility(); Action.checkCompatibility();
const { dockerfile, workspace, actionFolder } = Action; const { dockerfile, workspace, actionFolder } = Action;
const { unityVersion, projectPath, artifactsPath, customParameters } = Input.getFromUser(); const {
unityVersion,
projectPath,
testMode,
artifactsPath,
customParameters,
} = Input.getFromUser();
const baseImage = ImageTag.createForBase(unityVersion); const baseImage = ImageTag.createForBase(unityVersion);
// Build docker image // Build docker image
@ -16,6 +22,7 @@ async function action() {
workspace, workspace,
unityVersion, unityVersion,
projectPath, projectPath,
testMode,
artifactsPath, artifactsPath,
customParameters, customParameters,
}); });

View File

@ -18,7 +18,14 @@ class Docker {
} }
static async run(image, parameters, silent = false) { static async run(image, parameters, silent = false) {
const { unityVersion, workspace, projectPath, artifactsPath, customParameters } = parameters; const {
unityVersion,
workspace,
projectPath,
testMode,
artifactsPath,
customParameters,
} = parameters;
const command = `docker run \ const command = `docker run \
--workdir /github/workspace \ --workdir /github/workspace \
@ -29,6 +36,7 @@ class Docker {
--env UNITY_SERIAL \ --env UNITY_SERIAL \
--env UNITY_VERSION=${unityVersion} \ --env UNITY_VERSION=${unityVersion} \
--env PROJECT_PATH=${projectPath} \ --env PROJECT_PATH=${projectPath} \
--env TEST_MODE=${testMode} \
--env ARTIFACTS_PATH=${artifactsPath} \ --env ARTIFACTS_PATH=${artifactsPath} \
--env CUSTOM_PARAMETERS=${customParameters} \ --env CUSTOM_PARAMETERS=${customParameters} \
--env HOME=/github/home \ --env HOME=/github/home \