fix: #170 #171 - add RUNNER_OS and RUNNER_TEMP

This commit is contained in:
Casey Lee 2020-04-22 23:57:36 -07:00
parent c44b71c996
commit a9533b05ce
No known key found for this signature in database
GPG Key ID: 1899120ECD0A1784
2 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,7 @@ func (rc *RunContext) startJobContainer() common.Executor {
}
envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TOOL_CACHE", "/opt/hostedtoolcache"))
envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_OS", "Linux"))
binds := []string{
fmt.Sprintf("%s:%s", "/var/run/docker.sock", "/var/run/docker.sock"),

View File

@ -164,6 +164,8 @@ func (sc *StepContext) newStepContainer(ctx context.Context, image string, cmd [
}
envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TOOL_CACHE", "/opt/hostedtoolcache"))
envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_OS", "Linux"))
envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TEMP", "/tmp"))
binds := []string{
fmt.Sprintf("%s:%s", "/var/run/docker.sock", "/var/run/docker.sock"),