Skip to content

Commit

Permalink
Add AppleHV artifact to stream and release metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
baude committed Aug 15, 2023
1 parent c32d9d0 commit b185a38
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 b185a38

Please sign in to comment.