Skip to content

Commit

Permalink
jobs/sync-stream-metadata: convert and sync release notes
Browse files Browse the repository at this point in the history
Now that we have release notes in the streams repo, convert them from
YAML to JSON and sync them to S3 from which the website will fetch it
just like stream metadata.
  • Loading branch information
jlebon committed May 25, 2022
1 parent 8402f26 commit 421fe51
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jobs/sync-stream-metadata.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ cosaPod(configMaps: ["fedora-messaging-cfg"], secrets: ["fedora-messaging-coreos
stream.metadata.update --stream ${stream}
""")
}
// Currently, we always re-upload release notes. We don't want to
// falsely emit a stream.metadata.update message when only release
// notes changed, and also the way change detection works above
// doesn't mesh well with freshly regenerated data.
shwrap("""
python -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin.read()), sys.stdout)' \
< release-notes/${stream}.yaml > release-notes/${stream}.json
aws s3 cp --acl public-read --cache-control 'max-age=60' \
release-notes/${stream}.json s3://fcos-builds/release-notes/${stream}.json
""")
}
}
}

0 comments on commit 421fe51

Please sign in to comment.