Skip to content

Commit

Permalink
Add Vultr disk artifacts to stream metadata
Browse files Browse the repository at this point in the history
* FCOS Jenkins pipeline builds Vultr disk images, but they
need to be mentioned in stream metadata too
* coreos/fedora-coreos-tracker#355
  • Loading branch information
dghubble authored and Luca Bruno committed Jun 9, 2020
1 parent 4dd6b01 commit ad968ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ func releaseToStream(releaseArch *ReleaseArch, release Release) StreamArch {
artifacts.Exoscale = &exoscale
}

if releaseArch.Media.Vultr != nil {
vultr := StreamMediaDetails{
Release: release.Release,
Formats: releaseArch.Media.Vultr.Artifacts,
}
artifacts.Vultr = &vultr
}

if releaseArch.Media.Gcp != nil {
gcp := StreamMediaDetails{
Release: release.Release,
Expand Down
1 change: 1 addition & 0 deletions release.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type ReleaseMedia struct {
Qemu *ReleaseTargetPlatform `json:"qemu"`
Virtualbox *ReleaseTargetPlatform `json:"virtualbox"`
Vmware *ReleaseTargetPlatform `json:"vmware"`
Vultr *ReleaseTargetPlatform `json:"vultr"`
}

// ReleaseAws contains AWS image information
Expand Down
1 change: 1 addition & 0 deletions stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type StreamArtifacts struct {
Qemu *StreamMediaDetails `json:"qemu,omitempty"`
Virtualbox *StreamMediaDetails `json:"virtualbox,omitempty"`
Vmware *StreamMediaDetails `json:"vmware,omitempty"`
Vultr *StreamMediaDetails `json:"vultr,omitempty"`
}

// StreamMediaDetails contains image artifact and release detail
Expand Down

0 comments on commit ad968ad

Please sign in to comment.