runconfig: add and populate Runtime.Arch
This commit is contained in:
parent
a511fbf10c
commit
22f0865aa3
@ -59,6 +59,7 @@ func genRuntime(c *config.Config, ce *config.Runtime, variables map[string]strin
|
||||
|
||||
return &rstypes.Runtime{
|
||||
Type: rstypes.RuntimeType(ce.Type),
|
||||
Arch: ce.Arch,
|
||||
Containers: containers,
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/mitchellh/copystructure"
|
||||
"github.com/sorintlab/agola/internal/common"
|
||||
"github.com/sorintlab/agola/internal/util"
|
||||
)
|
||||
|
||||
@ -366,6 +367,7 @@ type RegistryAuth struct {
|
||||
|
||||
type Runtime struct {
|
||||
Type RuntimeType `json:"type,omitempty"`
|
||||
Arch common.Arch `json:"arch,omitempty"`
|
||||
Containers []*Container `json:"containers,omitempty"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user