runconfig: add and populate Runtime.Arch

This commit is contained in:
Simone Gotti 2019-04-17 15:23:50 +02:00
parent a511fbf10c
commit 22f0865aa3
2 changed files with 3 additions and 0 deletions

View File

@ -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,
}
}

View File

@ -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"`
}