Skip to content

Commit

Permalink
Merge pull request #55 from baude/hyperv
Browse files Browse the repository at this point in the history
Add Hyper-V artifact
  • Loading branch information
bgilbert authored Jun 28, 2023
2 parents 66a84a3 + 25949dd commit 7269cd1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Changes:

- Add support for Hyper-V images


## stream-metadata-go 0.4.2 (2023-06-01)
Expand Down
1 change: 1 addition & 0 deletions release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type Media struct {
Digitalocean *PlatformBase `json:"digitalocean"`
Exoscale *PlatformBase `json:"exoscale"`
Gcp *PlatformGcp `json:"gcp"`
HyperV *PlatformBase `json:"hyperv"`
Ibmcloud *PlatformIBMCloud `json:"ibmcloud"`
KubeVirt *PlatformKubeVirt `json:"kubevirt"`
Metal *PlatformBase `json:"metal"`
Expand Down
7 changes: 7 additions & 0 deletions release/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ func (releaseArch *Arch) toStreamArch(rel *Release) stream.Arch {
*/
}

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

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

0 comments on commit 7269cd1

Please sign in to comment.