mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-06 17:40:58 +00:00
support runner.arch (#1290)
* support runner.arch Signed-off-by: Fabian Kammel <fk@edgeless.systems> * add arch to runner definition Signed-off-by: Fabian Kammel <fk@edgeless.systems> * get architecture from docker Signed-off-by: Fabian Kammel <fk@edgeless.systems> * Update pkg/container/docker_run.go Co-authored-by: ChristopherHX <christopher.homberger@web.de> * lint: goimport file Signed-off-by: Fabian Kammel <fk@edgeless.systems> Co-authored-by: Casey Lee <caseypl@amazon.com> Co-authored-by: ChristopherHX <christopher.homberger@web.de> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
5a351d33df
commit
c0aff7b82e
5 changed files with 26 additions and 0 deletions
|
@ -346,6 +346,7 @@ func newStepContainer(ctx context.Context, step step, image string, cmd []string
|
|||
|
||||
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_ARCH", container.RunnerArch(ctx)))
|
||||
envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TEMP", "/tmp"))
|
||||
|
||||
binds, mounts := rc.GetBindsAndMounts()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue