Skip to content

Commit 6636d9a

Browse files
vjdbjpre-commit-ci[bot]d4kverma
authored
fix:update azurerm version (#41)
* fix:update azurerm version * fix: tflint warnings * fix: removed unused variables * fix mysql server naming --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Deepak verma <89906661+d4kverma@users.noreply.github.com> Co-authored-by: Deepak Verma <deepak.verma@clouddrove.com>
1 parent 5f169f1 commit 6636d9a

25 files changed

+370
-255
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
.github/* @clouddrove/approvers
2-
3-
* @clouddrove/clouddrovians @clouddrove/approvers
4-
5-
.github/mergify.yml @clouddrove/admins
6-
.github/CODEOWNERS @clouddrove/admins
1+
# These owners will be the default owners for everything in the repo.
2+
* @anmolnagpal @clouddrove-ci @clouddrove/terraform-azure-admins

.github/workflows/auto_assignee.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto Assign PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
workflow_dispatch:
8+
jobs:
9+
assignee:
10+
uses: clouddrove/github-shared-workflows/.github/workflows/auto_assignee.yml@master
11+
secrets:
12+
GITHUB: ${{ secrets.GITHUB }}
13+
with:
14+
assignees: 'clouddrove-ci'

.github/workflows/automerge.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Auto merge
3+
on:
4+
pull_request:
5+
jobs:
6+
auto-merge:
7+
uses: clouddrove/github-shared-workflows/.github/workflows/auto_merge.yml@master
8+
secrets:
9+
GITHUB: ${{ secrets.GITHUB }}
10+
with:
11+
tfcheck: 'complete-example / Check code format'
12+
...

.github/workflows/readme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
uses: clouddrove/github-shared-workflows/.github/workflows/readme.yml@master
1313
secrets:
1414
TOKEN : ${{ secrets.GITHUB }}
15-
SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}
15+
SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}

.github/workflows/semantic-releaser.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/static-checks.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

.github/workflows/tf-checks.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: tf-checks
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
complete-example:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
10+
secrets: inherit
11+
with:
12+
working_directory: './examples/complete/'
13+
14+
basic-example:
15+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
16+
secrets: inherit
17+
with:
18+
working_directory: './examples/basic/'
19+
20+
mysql-flexible-server-replication-example:
21+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
22+
secrets: inherit
23+
with:
24+
working_directory: './examples/mysql-flexible-server-replication/'

.github/workflows/tflint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: tf-lint
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
tf-lint:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master
10+
secrets:
11+
GITHUB: ${{ secrets.GITHUB }}

.pre-commit-config.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
- id: shellcheck
88
- id: tflint
99

10-
- repo: git://github.com/pre-commit/pre-commit-hooks
10+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
1111
rev: v4.0.1 # Use the ref you want to point at
1212
hooks:
1313
- id: end-of-file-fixer
@@ -19,3 +19,17 @@ repos:
1919
- id: debug-statements
2020
- id: check-yaml
2121
- id: check-added-large-files
22+
23+
- repo: https://github.com/antonbabenko/pre-commit-terraform
24+
rev: v1.77.0
25+
hooks:
26+
- id: terraform_fmt
27+
- id: terraform_docs
28+
args:
29+
- '--args=--lockfile=false'
30+
- --hook-config=--add-to-existing-file=true
31+
- --hook-config=--create-file-if-not-exist=true
32+
33+
- id: terraform_tflint
34+
args:
35+
- --args=--config=.tflint.hcl

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4242
[1.0.0]: https://github.com/clouddrove/terraform-azure-flexible-mysql/compare/1.0.0...master
4343

4444
[1.0.1]: https://github.com/clouddrove/terraform-azure-flexible-mysql/compare/1.0.0...1.0.1
45+
4546
[1.0.2]: https://github.com/clouddrove/terraform-azure-flexible-mysql/compare/1.0.1...1.0.2
47+

0 commit comments

Comments
 (0)