Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GitLab Environments and Deployments #225

Open
cskarby opened this issue Jul 29, 2021 · 1 comment
Open

Add support for GitLab Environments and Deployments #225

cskarby opened this issue Jul 29, 2021 · 1 comment

Comments

@cskarby
Copy link

cskarby commented Jul 29, 2021

I'm looking at the git commit status notification provider for GitLab and is wondering if there would be interesting to extend the capabilities to work with GitLab Environments and Deployments, see https://docs.gitlab.com/ee/ci/environments/ ?

I believe it should be possible to:

  1. Create an environment via gitlab-ci: https://docs.gitlab.com/ee/ci/environments/#prepare-an-environment-without-creating-a-deployment
  2. Make the notification controller post a deployment (with success/failed status) to GitLab: https://docs.gitlab.com/ee/api/deployments.html#create-a-deployment (if the environment name does not exist, probably also create this first?)

For this to work we would need some more information for the notification:

  • name of the GitLab project's environment (created in step 1 above)
  • which branch we're syncing with in the source-controller

It seems that the golang library used to post back to gitlab, already has support for Deployments, see

"github.com/xanzy/go-gitlab"
and https://github.com/xanzy/go-gitlab#coverage

@jrauschenbusch
Copy link

jrauschenbusch commented Apr 1, 2022

Would be a really cool feature for Gitlab. But i think first there needs to be the new dedicated CommitStatus CRD so that there is more flexibility for such specific fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants