fix: #170 #171 - add RUNNER_OS and RUNNER_TEMP

This commit is contained in:
Casey Lee
2020-04-22 23:57:36 -07:00
父節點 c44b71c996
當前提交 a9533b05ce
共有 2 個文件被更改,包括 3 次插入0 次删除

查看文件

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

查看文件

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