SovereignCloudStack / cluster-stacks

Definition of Cluster Stacks based on the ClusterAPI ClusterClass feature
https://scs.community/
Apache License 2.0
7 stars 6 forks source link

Release action #32

Open mxmxchere opened 6 months ago

mxmxchere commented 6 months ago

Currently there is no coupling between the repo state and the GitHub Releases. The GitHub releases however are the single source of code used in the quickstart-guide. In order to get a coupling between the repo and the releases we need some automation that creates GitHub Releases from the state of the repo.

<fill in standard arguments for automation here>

mxmxchere commented 5 months ago

The first iteration that came to my mind is the following: A script located in hack/ which needs to be executed in providers/x/y/z where x is the provider, y is the clusterstack name and z is the kubernetes version.

The next step is to check whether the worktree in that subdirectory is clean and up-to-date with the upstream main branch (at least the files that will be used as assets). The release version is then read from the metadata.yaml file in that directory. With that release number the script should attempt to create a new Github-release. If it is possible it should append the metadata.yaml the node-images.yaml and the zipped version of the cluster-class and the cluster-addons.