Add missing env
parent
d5a5335100
commit
b181c9cdbe
File diff suppressed because one or more lines are too long
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue