Skip to content

Commit

Permalink
fix: add attributes and latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
mamrajyadav committed Jan 9, 2024
1 parent 6827ed8 commit 4d40f47
Show file tree
Hide file tree
Showing 23 changed files with 223 additions and 266 deletions.
4 changes: 4 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version = 1

[[analyzers]]
name = "terraform"
17 changes: 9 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ updates:
interval: "daily"
open-pull-requests-limit: 3
assignees:
- "clouddrove-ci"
- "clouddrove-ci"
reviewers:
- "approvers"
- "approvers"

- package-ecosystem: "terraform" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
assignees:
- "clouddrove-ci"
- "clouddrove-ci"
# Add reviewer
reviewers:
- "approvers"
- "approvers"
# Allow up to 3 open pull requests for pip dependencies
open-pull-requests-limit: 3

Expand All @@ -35,10 +35,10 @@ updates:
interval: "weekly"
# Add assignees
assignees:
- "clouddrove-ci"
- "clouddrove-ci"
# Add reviewer
reviewers:
- "approvers"
- "approvers"
# Allow up to 3 open pull requests for pip dependencies
open-pull-requests-limit: 3

Expand All @@ -48,9 +48,10 @@ updates:
interval: "weekly"
# Add assignees
assignees:
- "clouddrove-ci"
- "clouddrove-ci"
# Add reviewer
reviewers:
- "approvers"
- "approvers"
# Allow up to 3 open pull requests for pip dependencies
open-pull-requests-limit: 3

14 changes: 14 additions & 0 deletions .github/workflows/auto_assignee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Auto Assign PRs

on:
pull_request:
types: [opened, reopened]

workflow_dispatch:
jobs:
assignee:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
secrets:
GITHUB: ${{ secrets.GITHUB }}
with:
assignees: 'clouddrove-ci'
12 changes: 12 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Auto merge
on:
pull_request:
jobs:
auto-merge:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
secrets:
GITHUB: ${{ secrets.GITHUB }}
with:
tfcheck: 'basic-example / Get min/max versions'
...
4 changes: 2 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- "*"
workflow_dispatch:
jobs:
call-workflow-changelog:
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
changelog:
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@1.0.10
secrets: inherit
with:
branch: 'master'
7 changes: 3 additions & 4 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@ jobs:
uses: actions/checkout@master

- name: 'Set up Python 3.7'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: 'create readme'
uses: 'clouddrove/github-actions@v9.0.3'
uses: 'clouddrove/github-actions@9.0.3'
with:
actions_subcommand: 'readme'
github_token: '${{ secrets.GITHUB }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: 'pre-commit check errors'
uses: pre-commit/[email protected]
continue-on-error: true
Expand All @@ -51,4 +50,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()
if: always()
30 changes: 0 additions & 30 deletions .github/workflows/semantic-releaser.yml

This file was deleted.

75 changes: 0 additions & 75 deletions .github/workflows/static-checks.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/tf-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: tf-checks
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
basic-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/basic/'

complete-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/complete/'

11 changes: 11 additions & 0 deletions .github/workflows/tflint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: tf-lint
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
tf-lint:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
secrets:
GITHUB: ${{ secrets.GITHUB }}
4 changes: 2 additions & 2 deletions .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:
jobs:
tfsec:
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@1.0.10
secrets: inherit
with:
working_directory: '.'
working_directory: '.'
12 changes: 7 additions & 5 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ github_repo: clouddrove/terraform-azure-dns

# Badges to display
badges:
- name: "Terraform"
image: "https://img.shields.io/badge/Terraform-v1.0.0-green"
url: "https://www.terraform.io"
- name: "Latest Release"
image: "https://img.shields.io/github/release/clouddrove/terraform-azure-dns.svg"
url: "https://github.com/clouddrove/terraform-azure-dns/releases/latest"
- name: "tfsec"
image: "https://github.com/clouddrove/terraform-azure-dns/actions/workflows/tfsec.yml/badge.svg"
url: "https://github.com/clouddrove/terraform-azure-dns/actions/workflows/tfsec.yml"
- name: "Licence"
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
url: "LICENSE.md"
Expand Down Expand Up @@ -73,5 +76,4 @@ usage: |-
records = ["ns1.example.com.","ns2.example.com."]
}]
}
```
```
12 changes: 8 additions & 4 deletions _example/basic/example.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
##-----------------------------------------------------------------------------
provider "azurerm" {
features {}
}

##-----------------------------------------------------------------------------
## DNS zone module call
## Below module will deploy public dns in azure.
## Below module will deploy public dns in azure.
##-----------------------------------------------------------------------------
module "dns_zone" {
source = "../.."
name = "app"
environment = "test"
resource_group_name = "test-rg"
resource_group_name = "NetworkWatcherRG"
dns_zone_names = "example.com"
private_registration_enabled = false
private_dns = false
Expand Down Expand Up @@ -34,4 +38,4 @@ module "dns_zone" {
ttl = 3600
records = ["ns1.example.com.", "ns2.example.com."]
}]
}
}
Loading

0 comments on commit 4d40f47

Please sign in to comment.