cli default parameter
parent
89a6004493
commit
f7757c35c1
|
|
@ -2396,10 +2396,16 @@ class CloudRunnerBuildCommandProcessor {
|
||||||
static ProcessCommands(commands, buildParameters) {
|
static ProcessCommands(commands, buildParameters) {
|
||||||
return `echo "---"
|
return `echo "---"
|
||||||
echo "start"
|
echo "start"
|
||||||
|
${CloudRunnerBuildCommandProcessor.GetSecrets(buildParameters)}
|
||||||
${commands}
|
${commands}
|
||||||
echo "end--${buildParameters.logId}"
|
echo "end--${buildParameters.logId}"
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
static GetSecrets(buildParameters) {
|
||||||
|
return buildParameters.cloudRunnerCluster === `k8s`
|
||||||
|
? `for f in /credentials; do cat $f | base64 && echo $f; done`
|
||||||
|
: ``;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exports.CloudRunnerBuildCommandProcessor = CloudRunnerBuildCommandProcessor;
|
exports.CloudRunnerBuildCommandProcessor = CloudRunnerBuildCommandProcessor;
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -4,8 +4,14 @@ export class CloudRunnerBuildCommandProcessor {
|
||||||
public static ProcessCommands(commands: string, buildParameters: BuildParameters): string {
|
public static ProcessCommands(commands: string, buildParameters: BuildParameters): string {
|
||||||
return `echo "---"
|
return `echo "---"
|
||||||
echo "start"
|
echo "start"
|
||||||
|
${CloudRunnerBuildCommandProcessor.GetSecrets(buildParameters)}
|
||||||
${commands}
|
${commands}
|
||||||
echo "end--${buildParameters.logId}"
|
echo "end--${buildParameters.logId}"
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
static GetSecrets(buildParameters: BuildParameters) {
|
||||||
|
return buildParameters.cloudRunnerCluster === `k8s`
|
||||||
|
? `for f in /credentials; do cat $f | base64 && echo $f; done`
|
||||||
|
: ``;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue