This commit is contained in:
TingluoHuang
2021-10-28 19:40:25 -04:00
parent a45c0278e6
commit 3ce763338d
4 changed files with 10 additions and 1 deletions

View File

@@ -71,6 +71,9 @@ async function run(): Promise<void> {
// 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}}
// copy over node.js

View File

@@ -3042,6 +3042,8 @@ function run() {
// ])
yield exec.exec('kubectl', runArgs);
// 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}}
// copy over node.js
const cpNodeArgs = [

View File

@@ -62,6 +62,9 @@ namespace GitHub.Runner.Worker
[DataMember]
public List<string> EnvironmentKeys { get; set; }
[DataMember]
public Dictionary<string, string> EnvironmentVariables { get; set; }
}

View File

@@ -192,7 +192,8 @@ namespace GitHub.Runner.Worker.Handlers
WorkingDirectory = workingDirectory,
FileName = fileName,
Arguments = arguments,
EnvironmentKeys = environment.Keys.ToList()
EnvironmentKeys = environment.Keys.ToList(),
EnvironmentVariables = environment.ToDictionary(x => x.Key, y => y.Value)
}
};