Create unique names for builds

This commit is contained in:
Webber 2020-01-09 21:55:37 +01:00 committed by Webber Takken
parent a1cc9f2e70
commit 298c667fc0
3 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -41,8 +41,9 @@ if [ -z "$BUILDS_PATH" ]; then
BUILDS_PATH=build BUILDS_PATH=build
fi fi
BUILDS_FULL_PATH=$GITHUB_WORKSPACE/$BUILDS_PATH BUILDS_FULL_PATH=$GITHUB_WORKSPACE/$BUILDS_PATH
CURRENT_BUILD_PATH=$BUILDS_PATH/$BUILD_TARGET BUILD_FOLDER=$BUILD_TARGET-$UNITY_VERSION
CURRENT_BUILD_FULL_PATH=$BUILDS_FULL_PATH/$BUILD_TARGET CURRENT_BUILD_PATH=$BUILDS_PATH/$BUILD_FOLDER
CURRENT_BUILD_FULL_PATH=$BUILDS_FULL_PATH/$BUILD_FOLDER
echo "Using build path \"$CURRENT_BUILD_PATH\"." echo "Using build path \"$CURRENT_BUILD_PATH\"."
# #

View File

@ -19,11 +19,13 @@ export default class Docker {
static async run(image, parameters, silent = false) { static async run(image, parameters, silent = false) {
const { workspace, platform, projectPath, buildName, buildsPath, method } = parameters; const { workspace, platform, projectPath, buildName, buildsPath, method } = parameters;
const { version } = image;
const command = `docker run \ const command = `docker run \
--workdir /github/workspace \ --workdir /github/workspace \
--rm \ --rm \
--env UNITY_LICENSE \ --env UNITY_LICENSE \
--env UNITY_VERSION=${version} \
--env PROJECT_PATH=${projectPath} \ --env PROJECT_PATH=${projectPath} \
--env BUILD_TARGET=${platform} \ --env BUILD_TARGET=${platform} \
--env BUILD_NAME=${buildName} \ --env BUILD_NAME=${buildName} \