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{
|
return &rstypes.Runtime{
|
||||||
Type: rstypes.RuntimeType(ce.Type),
|
Type: rstypes.RuntimeType(ce.Type),
|
||||||
|
Arch: ce.Arch,
|
||||||
Containers: containers,
|
Containers: containers,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mitchellh/copystructure"
|
"github.com/mitchellh/copystructure"
|
||||||
|
"github.com/sorintlab/agola/internal/common"
|
||||||
"github.com/sorintlab/agola/internal/util"
|
"github.com/sorintlab/agola/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -366,6 +367,7 @@ type RegistryAuth struct {
|
|||||||
|
|
||||||
type Runtime struct {
|
type Runtime struct {
|
||||||
Type RuntimeType `json:"type,omitempty"`
|
Type RuntimeType `json:"type,omitempty"`
|
||||||
|
Arch common.Arch `json:"arch,omitempty"`
|
||||||
Containers []*Container `json:"containers,omitempty"`
|
Containers []*Container `json:"containers,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user