build dist/index
parent
7b7248b494
commit
ca041c4ea0
|
|
@ -230,6 +230,7 @@ class BuildParameters {
|
||||||
androidKeyaliasPass: input_1.default.androidKeyaliasPass,
|
androidKeyaliasPass: input_1.default.androidKeyaliasPass,
|
||||||
customParameters: input_1.default.customParameters,
|
customParameters: input_1.default.customParameters,
|
||||||
sshAgent: input_1.default.sshAgent,
|
sshAgent: input_1.default.sshAgent,
|
||||||
|
gitCredential: input_1.default.gitCredential,
|
||||||
chownFilesTo: input_1.default.chownFilesTo,
|
chownFilesTo: input_1.default.chownFilesTo,
|
||||||
remoteBuildCluster: input_1.default.remoteBuildCluster,
|
remoteBuildCluster: input_1.default.remoteBuildCluster,
|
||||||
awsStackName: input_1.default.awsStackName,
|
awsStackName: input_1.default.awsStackName,
|
||||||
|
|
@ -347,7 +348,7 @@ class Docker {
|
||||||
}
|
}
|
||||||
static run(image, parameters, silent = false) {
|
static run(image, parameters, silent = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const { version, workspace, runnerTempPath, platform, projectPath, buildName, buildPath, buildFile, buildMethod, buildVersion, androidVersionCode, androidKeystoreName, androidKeystoreBase64, androidKeystorePass, androidKeyaliasName, androidKeyaliasPass, customParameters, sshAgent, chownFilesTo, } = parameters;
|
const { version, workspace, runnerTempPath, platform, projectPath, buildName, buildPath, buildFile, buildMethod, buildVersion, androidVersionCode, androidKeystoreName, androidKeystoreBase64, androidKeystorePass, androidKeyaliasName, androidKeyaliasPass, customParameters, sshAgent, gitCredential, chownFilesTo, } = parameters;
|
||||||
const command = `docker run \
|
const command = `docker run \
|
||||||
--workdir /github/workspace \
|
--workdir /github/workspace \
|
||||||
--rm \
|
--rm \
|
||||||
|
|
@ -388,6 +389,7 @@ class Docker {
|
||||||
--env RUNNER_TOOL_CACHE \
|
--env RUNNER_TOOL_CACHE \
|
||||||
--env RUNNER_TEMP \
|
--env RUNNER_TEMP \
|
||||||
--env RUNNER_WORKSPACE \
|
--env RUNNER_WORKSPACE \
|
||||||
|
${gitCredential ? '--env GIT_CREDENTIAL' : ''} \
|
||||||
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
|
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
|
||||||
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
|
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
|
||||||
--volume "${runnerTempPath}/_github_home":"/root" \
|
--volume "${runnerTempPath}/_github_home":"/root" \
|
||||||
|
|
@ -669,6 +671,9 @@ class Input {
|
||||||
static get sshAgent() {
|
static get sshAgent() {
|
||||||
return core.getInput('sshAgent') || '';
|
return core.getInput('sshAgent') || '';
|
||||||
}
|
}
|
||||||
|
static get gitCredential() {
|
||||||
|
return core.getInput('gitCredential') || '';
|
||||||
|
}
|
||||||
static get chownFilesTo() {
|
static get chownFilesTo() {
|
||||||
return core.getInput('chownFilesTo') || '';
|
return core.getInput('chownFilesTo') || '';
|
||||||
}
|
}
|
||||||
|
|
@ -156351,7 +156356,7 @@ const testParameter = (name, filters) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const normalizeDataURL = (urlString, {stripHash}) => {
|
const normalizeDataURL = (urlString, {stripHash}) => {
|
||||||
const parts = urlString.match(/^data:(.*?),(.*?)(?:#(.*))?$/);
|
const parts = urlString.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);
|
||||||
|
|
||||||
if (!parts) {
|
if (!parts) {
|
||||||
throw new Error(`Invalid URL: ${urlString}`);
|
throw new Error(`Invalid URL: ${urlString}`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue