rcsb / devops-cicd-github-actions

Repo to test CI/CD pipelines and store reusable workflows
0 stars 2 forks source link

[WIP] Schema release version bump for downstream projects #11

Closed josemduarte closed 1 year ago

josemduarte commented 1 year ago

This is an initial proposal for how to do a release manually from github workflows for projects that use the schema. One step towards stop using the custom python workflow at https://github.com/rcsb/SysAdmin/blob/master/general/parks/perform_parks_stack_release.py

What I did here is clone the release.yaml and update-version.yaml scripts and adapt them for this purpose. But I'm a bit lost in what exactly my new release-for-new-schema.yaml should be doing? Is it ok to do the full K8s deployment with it?

Any input much appreciated @Ingvord

When we get this to work, then we'd have a manual way to do it from github and that's already better than the python script. Eventually it'd be ideal to chain the workflows automatically. That seems to be possible as outlined here but a little bit more involved.

josemduarte commented 1 year ago

@Ingvord see my latest commits. This would the script required to call from rcsb-json-schema to do commits in all downstream repos. Could you review it?

josemduarte commented 1 year ago

Closing this. In the end it makes more sense to have this script in rcsb-json-schema project, only placed where it is used.

https://github.com/rcsb/rcsb-json-schema/blob/master/.github/workflows/update-schema-dependency-version.yaml