Skip to content

Commit

Permalink
Merge pull request #27 from cgwalters/azurestack
Browse files Browse the repository at this point in the history
Add azurestack
  • Loading branch information
cgwalters authored Jul 20, 2021
2 parents d9238c8 + 539e302 commit e546d2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type Media struct {
Aliyun *PlatformBase `json:"aliyun"`
Aws *PlatformAws `json:"aws"`
Azure *PlatformBase `json:"azure"`
AzureStack *PlatformBase `json:"azurestack"`
Digitalocean *PlatformBase `json:"digitalocean"`
Exoscale *PlatformBase `json:"exoscale"`
Gcp *PlatformGcp `json:"gcp"`
Expand Down
7 changes: 7 additions & 0 deletions release/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ func (releaseArch *Arch) toStreamArch(rel *Release) stream.Arch {
// See https://github.com/coreos/stream-metadata-go/issues/13
}

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

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

0 comments on commit e546d2b

Please sign in to comment.