Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1019 from arithx/fcos_builds_url
Browse files Browse the repository at this point in the history
plume: FCOS URLs & structure update
  • Loading branch information
Stephen Lowrie authored Jul 10, 2019
2 parents aa75794 + 1042f7e commit f632306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/plume/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ func modifyReleaseMetadataIndex(spec *fcosChannelSpec, commitId string) {
}

releasePath := filepath.Join("prod", "streams", specChannel, "builds", specVersion, "release.json")
url, err := url.Parse(fmt.Sprintf("https://%s.s3.amazonaws.com/%s", spec.Bucket, releasePath))
url, err := url.Parse(fmt.Sprintf("https://builds.coreos.fedoraproject.org/%s", releasePath))
if err != nil {
plog.Fatalf("creating metadata url: %v", err)
}
Expand Down Expand Up @@ -581,6 +581,7 @@ func modifyReleaseMetadataIndex(spec *fcosChannelSpec, commitId string) {

m.Metadata.LastModified = time.Now().UTC().Format("2006-01-02T15:04:05Z")
m.Note = "For use only by Fedora CoreOS internal tooling. All other applications should obtain release info from stream metadata endpoints."
m.Stream = specChannel

out, err := json.Marshal(m)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions cmd/plume/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ type ReleaseMetadata struct {
Note string `json:"note"` // used to note to users not to consume the release metadata index
Releases []BuildMetadata `json:"releases"`
Metadata Metadata `json:"metadata"`
Stream string `json:"stream"`
}

type BuildMetadata struct {
Expand Down

0 comments on commit f632306

Please sign in to comment.