github-webhooks.tf 688 B

1234567891011121314151617181920212223
  1. # provider "github" {
  2. # base_url = "https://github.mdr.defpoint.com/api/v3/"
  3. # version = "~> 4.1.0"
  4. # organization = "mdr-engineering"
  5. # }
  6. # data "github_repository" "syslog-ng-container" {
  7. # full_name = "mdr-engineering/mdr-syslog-ng-container"
  8. # }
  9. # resource "github_repository_webhook" "syslog-ng-container" {
  10. # active = true
  11. # events = ["push"]
  12. # repository = "${data.github_repository.syslog-ng-container.name}"
  13. # configuration {
  14. # url = "${aws_codebuild_webhook.syslog-ng-container.payload_url}"
  15. # secret = "${aws_codebuild_webhook.syslog-ng-container.secret}"
  16. # content_type = "json"
  17. # insecure_ssl = false
  18. # }
  19. # }