Get cloud runner secrets from
parent
ea0af36589
commit
5327094620
|
|
@ -2942,21 +2942,6 @@ class TaskParameterSerializer {
|
||||||
...TaskParameterSerializer.serializeBuildParamsAndInput,
|
...TaskParameterSerializer.serializeBuildParamsAndInput,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
static getValue(key) {
|
|
||||||
return __1.Input.queryOverrides !== null && __1.Input.queryOverrides[key] !== undefined
|
|
||||||
? __1.Input.queryOverrides[key]
|
|
||||||
: process.env[key];
|
|
||||||
}
|
|
||||||
static tryAddInput(array, key) {
|
|
||||||
if (TaskParameterSerializer.getValue(key) !== undefined) {
|
|
||||||
array.push({
|
|
||||||
ParameterKey: key,
|
|
||||||
EnvironmentVariable: key,
|
|
||||||
ParameterValue: TaskParameterSerializer.getValue(key),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
static get serializeBuildParamsAndInput() {
|
static get serializeBuildParamsAndInput() {
|
||||||
let array = new Array();
|
let array = new Array();
|
||||||
array = TaskParameterSerializer.readBuildParameters(array);
|
array = TaskParameterSerializer.readBuildParameters(array);
|
||||||
|
|
@ -3014,6 +2999,21 @@ class TaskParameterSerializer {
|
||||||
__1.CloudRunner.defaultSecrets = array;
|
__1.CloudRunner.defaultSecrets = array;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
static getValue(key) {
|
||||||
|
return __1.Input.queryOverrides !== null && __1.Input.queryOverrides[key] !== undefined
|
||||||
|
? __1.Input.queryOverrides[key]
|
||||||
|
: process.env[key];
|
||||||
|
}
|
||||||
|
static tryAddInput(array, key) {
|
||||||
|
if (TaskParameterSerializer.getValue(key) !== undefined) {
|
||||||
|
array.push({
|
||||||
|
ParameterKey: key,
|
||||||
|
EnvironmentVariable: key,
|
||||||
|
ParameterValue: TaskParameterSerializer.getValue(key),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return array;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exports.TaskParameterSerializer = TaskParameterSerializer;
|
exports.TaskParameterSerializer = TaskParameterSerializer;
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -22,21 +22,6 @@ export class TaskParameterSerializer {
|
||||||
...TaskParameterSerializer.serializeBuildParamsAndInput,
|
...TaskParameterSerializer.serializeBuildParamsAndInput,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
private static getValue(key) {
|
|
||||||
return Input.queryOverrides !== null && Input.queryOverrides[key] !== undefined
|
|
||||||
? Input.queryOverrides[key]
|
|
||||||
: process.env[key];
|
|
||||||
}
|
|
||||||
private static tryAddInput(array, key) {
|
|
||||||
if (TaskParameterSerializer.getValue(key) !== undefined) {
|
|
||||||
array.push({
|
|
||||||
ParameterKey: key,
|
|
||||||
EnvironmentVariable: key,
|
|
||||||
ParameterValue: TaskParameterSerializer.getValue(key),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
private static get serializeBuildParamsAndInput() {
|
private static get serializeBuildParamsAndInput() {
|
||||||
let array = new Array();
|
let array = new Array();
|
||||||
array = TaskParameterSerializer.readBuildParameters(array);
|
array = TaskParameterSerializer.readBuildParameters(array);
|
||||||
|
|
@ -102,4 +87,19 @@ export class TaskParameterSerializer {
|
||||||
CloudRunner.defaultSecrets = array;
|
CloudRunner.defaultSecrets = array;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private static getValue(key) {
|
||||||
|
return Input.queryOverrides !== null && Input.queryOverrides[key] !== undefined
|
||||||
|
? Input.queryOverrides[key]
|
||||||
|
: process.env[key];
|
||||||
|
}
|
||||||
|
private static tryAddInput(array, key) {
|
||||||
|
if (TaskParameterSerializer.getValue(key) !== undefined) {
|
||||||
|
array.push({
|
||||||
|
ParameterKey: key,
|
||||||
|
EnvironmentVariable: key,
|
||||||
|
ParameterValue: TaskParameterSerializer.getValue(key),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return array;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue