Skip to content

Commit

Permalink
chore: adding terraform for GitHub repo maintenance (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Oct 4, 2023
1 parent 4ce6d19 commit 717afe9
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,18 @@
[![codecov](https://codecov.io/gh/bihealth/dotty/graph/badge.svg?token=eLNzGVw30U)](https://codecov.io/gh/bihealth/dotty)

# dotty - cdot-based position projection

## Terraform Project Management

```
$ export GITHUB_OWNER=bihealth
$ export GITHUB_TOKEN=ghp_<thetoken>
$ cd utils/terraform
$ terraform init
$ terraform import github_repository.dotty dotty
$ terraform validate
$ terraform fmt
$ terraform plan
$ terraform apply
```
2 changes: 2 additions & 0 deletions utils/terraform/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.terraform*
terraform.tfstate*
1 change: 1 addition & 0 deletions utils/terraform/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10
19 changes: 19 additions & 0 deletions utils/terraform/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Mangement of the GitHub project.

resource "github_repository" "dotty" {
name = "dotty"
description = "cdot-based transcript projections"

has_issues = true
visibility = "public"

allow_auto_merge = true
allow_rebase_merge = false
allow_merge_commit = false
has_downloads = true
has_discussions = true
delete_branch_on_merge = true

squash_merge_commit_message = "BLANK"
squash_merge_commit_title = "PR_TITLE"
}
1 change: 1 addition & 0 deletions utils/terraform/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
provider "github" {}

0 comments on commit 717afe9

Please sign in to comment.