diff --git a/internal/runconfig/runconfig.go b/internal/runconfig/runconfig.go index 45358d1..7233a86 100644 --- a/internal/runconfig/runconfig.go +++ b/internal/runconfig/runconfig.go @@ -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, } } diff --git a/internal/services/runservice/types/types.go b/internal/services/runservice/types/types.go index d9af754..5d6d1ff 100644 --- a/internal/services/runservice/types/types.go +++ b/internal/services/runservice/types/types.go @@ -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"` }