Skip to content

Commit

Permalink
Merge pull request #6 from kabisa/renovate/configure
Browse files Browse the repository at this point in the history
Configure Renovate
  • Loading branch information
obeleh authored Jul 22, 2022
2 parents 70382ba + 51ca01b commit 3ffad64
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 9 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Generate terraform docs

on:
push:
# don't run when we push a tag
tags-ignore:
- '*'
# don't run when we merge to main
# the action should have run already
branches-ignore:
- 'main'
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: terraform-linters/setup-tflint@v2
name: Setup TFLint
with:
tflint_version: v0.38.1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
# pre-commit fails if it changed files
# we want to go on
continue-on-error: true
- uses: pre-commit/[email protected]
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.tfstate.*
**/.terraform/
**/secrets.auto.tfvars
examples/.terraform.lock.hcl
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ repos:
- id: terraform-fmt
- id: terraform-validate
- id: tflint
- repo: git@github.com:kabisa/terraform-datadog-pre-commit-hook.git
rev: "1.2.2"
- repo: https://github.com/kabisa/terraform-datadog-pre-commit-hook
rev: "1.3.6"
hooks:
- id: terraform-datadog-docs
exclude: ^README.md$
args:
- "."
19 changes: 17 additions & 2 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Modules are generated with this tool: https://github.com/kabisa/datadog-terrafor
# Example Usage

```terraform
# tflint-ignore: terraform_module_version
module "aws_eu_west_1" {
source = "kabisa/aws-services/datadog"
Expand Down Expand Up @@ -62,16 +61,20 @@ module "aws_eu_west_1" {
```


[Module Variables](#module-variables)

Monitors:
* [Terraform module for Datadog Aws Services](#terraform-module-for-datadog-aws-services)
* [Module Variables](#module-variables)

| Monitor name | Default enabled | Priority | Query |
|-----------------|------|----|------------------------|

# Getting started developing
[pre-commit](http://pre-commit.com/) was used to do Terraform linting and validating.

Steps:
- Install [pre-commit](http://pre-commit.com/). E.g. `brew install pre-commit`.
- Run `pre-commit install` in this repo. (Every time you cloud a repo with pre-commit enabled you will need to run the pre-commit install command)
- Run `pre-commit install` in this repo. (Every time you clone a repo with pre-commit enabled you will need to run the pre-commit install command)
- That’s it! Now every time you commit a code change (`.tf` file), the hooks in the `hooks:` config `.pre-commit-config.yaml` will execute.

## Module Variables
Expand Down
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}

0 comments on commit 3ffad64

Please sign in to comment.