Skip to content

Commit

Permalink
Merge pull request #6 from globis-org/feat/hcp
Browse files Browse the repository at this point in the history
feat: HCP Terraform 用の renovate config を追加する
  • Loading branch information
yukin01 authored Apr 25, 2024
2 parents b658299 + 57edf6a commit 84887e0
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 5 deletions.
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"
}
]
}

0 comments on commit 84887e0

Please sign in to comment.