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

feat: create envs for managed repos using terraform #44

Merged
merged 9 commits into from
Sep 3, 2024
Merged

Conversation

cunla
Copy link
Member

@cunla cunla commented Sep 2, 2024

When importing a new repo - it will automatically create pypi and testpypi environments with the relevant rules.

Copy link

github-actions bot commented Sep 2, 2024

Terraform plan in terraform
With var files: terraform/production/org.tfvars terraform/production/repositories.tfvars
With variables: github_token = (sensitive value)

Plan: 2 to add, 0 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+   create

Terraform will perform the following actions:

  # github_repository_environment.pypi["django-tasks-scheduler"] will be created
+   resource "github_repository_environment" "pypi" {
+       can_admins_bypass   = true
+       environment         = "pypi"
+       id                  = (known after apply)
+       prevent_self_review = false
+       repository          = "django-tasks-scheduler"

+       reviewers {
+           teams = [
+               10707221,
            ]
        }
    }

  # github_repository_environment.testpypi["django-tasks-scheduler"] will be created
+   resource "github_repository_environment" "testpypi" {
+       can_admins_bypass   = true
+       environment         = "testpypi"
+       id                  = (known after apply)
+       prevent_self_review = false
+       repository          = "django-tasks-scheduler"
    }

Plan: 2 to add, 0 to change, 0 to destroy.

📝 Plan generated in Plan org changes and list them in a PR #84

cunla and others added 3 commits September 2, 2024 17:39
Files changed:
M	terraform/resources-environments.tf
This includes a step to walk through the release process with the maintainer as a way of onboarding them.
Copy link
Member

@tim-schilling tim-schilling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this in! Always great to simplify a process.

@cunla cunla merged commit 794a904 into main Sep 3, 2024
2 checks passed
@cunla cunla deleted the create-envs branch September 3, 2024 00:07
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

Successfully merging this pull request may close these issues.

2 participants