composer: add provisional multi-arch support
The pipeline generation now takes the architecture as an argument. Currently only x86_64 is supported. The architecture is detected at start-up, and passed down to each pipeline translation. For osbuild-pipeline we now requrie the architecture to be passed in. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
dcc9cdedee
commit
d33fc5f010
11 changed files with 48 additions and 20 deletions
|
|
@ -415,7 +415,7 @@ func (s *Store) DeleteBlueprintFromWorkspace(name string) {
|
|||
})
|
||||
}
|
||||
|
||||
func (s *Store) PushCompose(composeID uuid.UUID, bp *blueprint.Blueprint, checksums map[string]string, composeType string, uploadTarget *target.Target) error {
|
||||
func (s *Store) PushCompose(composeID uuid.UUID, bp *blueprint.Blueprint, checksums map[string]string, arch, composeType string, uploadTarget *target.Target) error {
|
||||
targets := []*target.Target{}
|
||||
|
||||
if s.stateDir != nil {
|
||||
|
|
@ -430,7 +430,7 @@ func (s *Store) PushCompose(composeID uuid.UUID, bp *blueprint.Blueprint, checks
|
|||
targets = append(targets, uploadTarget)
|
||||
}
|
||||
|
||||
pipeline, err := s.distro.Pipeline(bp, checksums, composeType)
|
||||
pipeline, err := s.distro.Pipeline(bp, checksums, arch, composeType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue