1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

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 8611e2a3d2
commit 862d198040
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"),