cli default parameter
							parent
							
								
									89a6004493
								
							
						
					
					
						commit
						f7757c35c1
					
				|  | @ -2396,10 +2396,16 @@ class CloudRunnerBuildCommandProcessor { | |||
|     static ProcessCommands(commands, buildParameters) { | ||||
|         return `echo "---"
 | ||||
|       echo "start" | ||||
|       ${CloudRunnerBuildCommandProcessor.GetSecrets(buildParameters)} | ||||
|       ${commands} | ||||
|       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; | ||||
| 
 | ||||
|  |  | |||
										
											
												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 { | ||||
|     return `echo "---"
 | ||||
|       echo "start" | ||||
|       ${CloudRunnerBuildCommandProcessor.GetSecrets(buildParameters)} | ||||
|       ${commands} | ||||
|       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