better named tests and log local-docker params
parent
f029159324
commit
c3e5478a18
|
|
@ -3611,17 +3611,21 @@ class LocalDockerCloudRunner {
|
|||
const { workspace, actionFolder } = model_1.Action;
|
||||
let myOutput = '';
|
||||
const content = [
|
||||
...secrets.map((x, index) => {
|
||||
...secrets.map((x) => {
|
||||
secrets[x.EnvironmentVariable] = x.ParameterValue;
|
||||
delete secrets[index];
|
||||
return;
|
||||
}),
|
||||
...environment.map((x, index) => {
|
||||
...environment.map((x) => {
|
||||
environment[x.name] = x.value;
|
||||
delete environment[index];
|
||||
return;
|
||||
}),
|
||||
];
|
||||
// eslint-disable-next-line unicorn/no-for-loop
|
||||
for (let index = 0; index < content.length; index++) {
|
||||
if (content[index] === undefined) {
|
||||
delete content[index];
|
||||
}
|
||||
}
|
||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, commands, content, {
|
||||
listeners: {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -62,19 +62,23 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
|||
const { workspace, actionFolder } = Action;
|
||||
let myOutput = '';
|
||||
const content = [
|
||||
...secrets.map((x, index) => {
|
||||
...secrets.map((x) => {
|
||||
secrets[x.EnvironmentVariable] = x.ParameterValue;
|
||||
delete secrets[index];
|
||||
|
||||
return;
|
||||
}),
|
||||
...environment.map((x, index) => {
|
||||
...environment.map((x) => {
|
||||
environment[x.name] = x.value;
|
||||
delete environment[index];
|
||||
|
||||
return;
|
||||
}),
|
||||
];
|
||||
// eslint-disable-next-line unicorn/no-for-loop
|
||||
for (let index = 0; index < content.length; index++) {
|
||||
if (content[index] === undefined) {
|
||||
delete content[index];
|
||||
}
|
||||
}
|
||||
|
||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||
await Docker.run(image, { workspace, actionFolder, ...this.buildParameters }, false, commands, content, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue