@@ -861,6 +861,8 @@ type Subpackage struct {
861861 URL string `json:"url,omitempty" yaml:"url,omitempty"`
862862 // Optional: The git commit of the subpackage build configuration
863863 Commit string `json:"commit,omitempty" yaml:"commit,omitempty"`
864+ // List of target architectures for which this subpackage should be built
865+ TargetArchitecture []string `json:"target-architecture,omitempty" yaml:"target-architecture,omitempty"`
864866 // Optional: enabling, disabling, and configuration of build checks
865867 Checks Checks `json:"checks" yaml:"checks,omitempty"`
866868 // Test section for the subpackage.
@@ -1551,17 +1553,18 @@ func replacePackage(r *strings.Replacer, commit string, in Package) Package {
15511553
15521554func replaceSubpackage (r * strings.Replacer , detectedCommit string , in Subpackage ) Subpackage {
15531555 return Subpackage {
1554- If : r .Replace (in .If ),
1555- Name : r .Replace (in .Name ),
1556- Pipeline : replacePipelines (r , in .Pipeline ),
1557- Dependencies : replaceDependencies (r , in .Dependencies ),
1558- Options : in .Options ,
1559- Scriptlets : replaceScriptlets (r , in .Scriptlets ),
1560- Description : r .Replace (in .Description ),
1561- URL : r .Replace (in .URL ),
1562- Commit : replaceCommit (detectedCommit , in .Commit ),
1563- Checks : in .Checks ,
1564- Test : replaceTest (r , in .Test ),
1556+ If : r .Replace (in .If ),
1557+ Name : r .Replace (in .Name ),
1558+ Pipeline : replacePipelines (r , in .Pipeline ),
1559+ Dependencies : replaceDependencies (r , in .Dependencies ),
1560+ Options : in .Options ,
1561+ Scriptlets : replaceScriptlets (r , in .Scriptlets ),
1562+ Description : r .Replace (in .Description ),
1563+ URL : r .Replace (in .URL ),
1564+ Commit : replaceCommit (detectedCommit , in .Commit ),
1565+ TargetArchitecture : replaceAll (r , in .TargetArchitecture ),
1566+ Checks : in .Checks ,
1567+ Test : replaceTest (r , in .Test ),
15651568 }
15661569}
15671570
0 commit comments