mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
.
This commit is contained in:
@@ -71,6 +71,9 @@ async function run(): Promise<void> {
|
|||||||
|
|
||||||
// get PATH inside the container
|
// get PATH inside the container
|
||||||
|
|
||||||
|
const waitArgs = ['wait', '--for=condition=Ready', 'pod/job-container']
|
||||||
|
await exec.exec('kubectl', waitArgs)
|
||||||
|
|
||||||
// output containerId for ${{job.container.id}}
|
// output containerId for ${{job.container.id}}
|
||||||
|
|
||||||
// copy over node.js
|
// copy over node.js
|
||||||
|
|||||||
@@ -3042,6 +3042,8 @@ function run() {
|
|||||||
// ])
|
// ])
|
||||||
yield exec.exec('kubectl', runArgs);
|
yield exec.exec('kubectl', runArgs);
|
||||||
// get PATH inside the container
|
// get PATH inside the container
|
||||||
|
const waitArgs = ['wait', '--for=condition=Ready', 'pod/job-container'];
|
||||||
|
yield exec.exec('kubectl', waitArgs);
|
||||||
// output containerId for ${{job.container.id}}
|
// output containerId for ${{job.container.id}}
|
||||||
// copy over node.js
|
// copy over node.js
|
||||||
const cpNodeArgs = [
|
const cpNodeArgs = [
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ namespace GitHub.Runner.Worker
|
|||||||
|
|
||||||
[DataMember]
|
[DataMember]
|
||||||
public List<string> EnvironmentKeys { get; set; }
|
public List<string> EnvironmentKeys { get; set; }
|
||||||
|
|
||||||
|
[DataMember]
|
||||||
|
public Dictionary<string, string> EnvironmentVariables { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -192,7 +192,8 @@ namespace GitHub.Runner.Worker.Handlers
|
|||||||
WorkingDirectory = workingDirectory,
|
WorkingDirectory = workingDirectory,
|
||||||
FileName = fileName,
|
FileName = fileName,
|
||||||
Arguments = arguments,
|
Arguments = arguments,
|
||||||
EnvironmentKeys = environment.Keys.ToList()
|
EnvironmentKeys = environment.Keys.ToList(),
|
||||||
|
EnvironmentVariables = environment.ToDictionary(x => x.Key, y => y.Value)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user