AzBuilder / terrakube

Open source IaC Automation and Collaboration Software.
https://docs.terrakube.io
Apache License 2.0
486 stars 36 forks source link

Pull Request Automation like atlantis #396

Open thatsk opened 1 year ago

thatsk commented 1 year ago

Feature description 💡

Hello Team,

Is anything related to pull request automation like Atlantis for the terrakube going on or is it there? looking for your feedback.

Anything else?

No response

alfespa17 commented 1 year ago

Hello @thatsk

There is not a lot about PR automation, we did some POC of how it can be done for example using Github Actions:

https://github.com/AzBuilder/terrakube-action-github

Internally the github action is calling the Terrakube API to create the workspace and run the job and show the information in the PR.

There is one example repository using github acitons here: https://github.com/AzBuilder/terraform-sample-repository

We also did one small POC with bitbucket pipelines (that is no longer working with Terrakube 2.X.X because of the DEX implementation) https://github.com/AzBuilder/terrakube-pipe-bitbucket

But I think to add support for PR automation like atlantis does, it will require only to implement webhooks support for the different providers like github, bitbucket, azure devops or gitlab because all the other logic like creating workspace, run the jobs is already there.

It will require sometime to do the research of how it can be implemented and it will also be a pretty good feature for Terrakube.

If anyone would like to add support for a feature like that or do the reasearch to document a POC of how it should be implemented all contributions are welcome.