fix: #170 #171 - add RUNNER_OS and RUNNER_TEMP

Cette révision appartient à :
Casey Lee
2020-04-22 23:57:36 -07:00
Parent c44b71c996
révision a9533b05ce
2 fichiers modifiés avec 3 ajouts et 0 suppressions

Voir le fichier

@@ -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"),

Voir le fichier

@@ -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"),