Replies: 1 comment 4 replies
-
You can actually do just that, as long as you configure the repo so the checks are required you don't even have to inform the promoter of the checks because the promoter can not override the required checks. There are some nice things though about having github only checks registered as commit status k8s resources and we have briefly talked about creating a controller to do just that query github and copy the checks configured there into commit statuses but we haven't spent a lot of time thinking about it either. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are currently evaluating gitops-promoter to augment our CD workflow based on Skaffold and pre-rendered manifests (hydration). This tool looked really promising as it fit our vision of a CD process with promotion pretty much.
There is one thing we don't quite understand around promotion gating, hence this discussion / question:
How are commit statuses supposed to work in promotion gating?
I understand that, in order for them to gate promotions in a PromotionStrategy we need to place actual
CommitStatus
resources into the cluster which, depending on the SCM provider, in our case GitHub, get posted to the API and show up on the commits as well.Is that understanding correct?
If so: how would we go about publishing existing GitHub Actions checks? If we were to create a provider for that, gitops-promoter would again publish them to the same commit, which would leave us with two checks doing the same thing, right?
Our idea was that we would use our existing GitHub Actions workflows to run all sorts of tests once the promotion to e.g. staging is done. These checks could be integration test, smoke tests and alike. We would like these checks to end up as CommitStatus in the cluster so we can use them in our PromotionStrategy configurations.
Is this feasible?
Are there any plans for the controller to automatically publish commit status from the SCM provider?
We would love to hear your thoughts on this.
Beta Was this translation helpful? Give feedback.
All reactions