cncf-tags / green-reviews-tooling

Project Repository for the WG Green Reviews which is part of the CNCF TAG Environmental Sustainability
https://github.com/cncf/tag-env-sustainability/tree/main/working-groups/green-reviews
Apache License 2.0
23 stars 14 forks source link

[ACTION] Add release trigger #98

Closed rossf7 closed 3 months ago

rossf7 commented 4 months ago

Task Description

Implement trigger for a green review when there is a new release of a participating CNCF project. Falco is the first project.

Design is described in proposal 1. https://github.com/cncf-tags/green-reviews-tooling/blob/main/docs/proposals/proposal-001-trigger-and-deploy.md#subscribing-to-releases

Tasks

dipankardas011 commented 4 months ago

Check GitHub atom releases feed for new releases

Fetching the latest releases and updating the versions in the repo_vars

We can creata a small python script to fetch the latest releases for all the projects and then we just one compare away once done we can use github api inside the python to modify the repo vars

Sample Example: https://github.com/ksctl/cli/blob/15f728468b4afaa6dcf17dcfcc6c4bc75a4e1762/scripts/install.sh#L22-L27

And this will get triggered by the github workflow once its done as it writes to the vars of the repo we are done with python in the next steps we could make the vars available or the projects we want to trigger in some file or something and a simple bash script inside the next step will help trigger the respective jobs

wdyt?

rossf7 commented 4 months ago

@dipankardas011 Let's discuss in the meeting tomorrow. Does the latest release endpoint include pre-releases?

We may want to trigger the pipeline for those.