Add missing env

pull/11/head
Webber 2020-01-31 00:57:08 +01:00 committed by Webber Takken
parent d5a5335100
commit b181c9cdbe
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();
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);
// Build docker image
@ -16,6 +22,7 @@ async function action() {
workspace,
unityVersion,
projectPath,
testMode,
artifactsPath,
customParameters,
});

View File

@ -18,7 +18,14 @@ class Docker {
}
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 \
--workdir /github/workspace \
@ -29,6 +36,7 @@ class Docker {
--env UNITY_SERIAL \
--env UNITY_VERSION=${unityVersion} \
--env PROJECT_PATH=${projectPath} \
--env TEST_MODE=${testMode} \
--env ARTIFACTS_PATH=${artifactsPath} \
--env CUSTOM_PARAMETERS=${customParameters} \
--env HOME=/github/home \