Skip to content

Commit

Permalink
Merge pull request #69 from baude/applehv
Browse files Browse the repository at this point in the history
Add AppleHV artifact to stream and release metadata
  • Loading branch information
dustymabe authored Nov 28, 2023
2 parents 347279c + b185a38 commit 81f81fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Changes:


- Add support for AppleHV images

## stream-metadata-go 0.4.3 (2023-06-28)

Expand Down
1 change: 1 addition & 0 deletions release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type Arch struct {
// Media contains release details for various platforms
type Media struct {
Aliyun *PlatformAliyun `json:"aliyun"`
AppleHV *PlatformBase `json:"applehv"`
Aws *PlatformAws `json:"aws"`
Azure *PlatformBase `json:"azure"`
AzureStack *PlatformBase `json:"azurestack"`
Expand Down
7 changes: 7 additions & 0 deletions release/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ func (releaseArch *Arch) toStreamArch(rel *Release) stream.Arch {
}
}

if releaseArch.Media.AppleHV != nil {
artifacts["applehv"] = stream.PlatformArtifacts{
Release: rel.Release,
Formats: mapFormats(releaseArch.Media.AppleHV.Artifacts),
}
}

if releaseArch.Media.Aws != nil {
artifacts["aws"] = stream.PlatformArtifacts{
Release: rel.Release,
Expand Down

0 comments on commit 81f81fb

Please sign in to comment.