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: HCP Terraform 用の renovate config を追加する #6

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# renovate-config

| File | Description |
| :------------------------- | :------------------------------------------------------------ |
| pinGitHubActions.json | GitHub Actionsの推奨設定 |
| sre.json | SREチームの利用推奨設定 (pinGitHubActionsを内包) |
| terraformWithAtlantis.json | Atlantisで実行するTerraformの推奨設定、auto merge有効化を前提 |
| File | Description |
|:----------------------|:-------------------------------------------------------------|
| pinGitHubActions.json | GitHub Actionsの推奨設定 |
| sre.json | SREチームの利用推奨設定 (pinGitHubActionsを内包) |
| terraform.json | Terraform用のpackageRulesの推奨設定 |
| atlantis.json | Atlantisで実行するTerraformの推奨設定、auto merge有効化を前提 |
| hcp.json | HCP Terraformで実行するTerraformの推奨設定、auto merge無効化を前提 |
8 changes: 8 additions & 0 deletions atlantis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>globis-org/renovate-config:terraform"
],
"prHourlyLimit": 1,
"rebaseWhen": "never"
}
14 changes: 14 additions & 0 deletions hcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>globis-org/renovate-config:terraform"
],
"prHourlyLimit": 0,
"rebaseWhen": "never",
"packageRules": [
{
"matchPackageNames": ["*"],
"automerge": false
}
]
}
41 changes: 41 additions & 0 deletions terraform.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchManagers": ["terraform"],
"matchPackagePatterns": ["^app.terraform.io/gdp-sre"],
"enabled": false
},
{
"matchManagers": ["terraform"],
"matchDepTypes": ["helm_release"],
"enabled": false
},
{
"matchManagers": ["terraform"],
"additionalBranchPrefix": "{{packageFileDir}}-",
"commitMessageSuffix": "({{packageFileDir}})",
"groupName": "terraform state",
"groupSlug": "tfstate",
"automerge": true,
"major": {
"automerge": false
},
"rangeStrategy": "pin"
},
{
"matchManagers": ["terraform"],
"additionalBranchPrefix": "{{packageFileDir}}-",
"commitMessageSuffix": "({{packageFileDir}})",
"description": "terraform local modules",
"groupName": "terraform modules",
"groupSlug": "tfmodules",
"matchFileNames": ["**/modules/**"],
"automerge": true,
"major": {
"automerge": false
},
"rangeStrategy": "auto"
}
]
}