Skip to content

Commit 3caf200

Browse files
initial project setup
0 parents  commit 3caf200

File tree

6 files changed

+151
-0
lines changed

6 files changed

+151
-0
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{{ if .Versions -}}
2+
<a name="unreleased"></a>
3+
## [Unreleased]
4+
{{ if .Unreleased.CommitGroups -}}
5+
{{ range .Unreleased.CommitGroups -}}
6+
### {{ .Title }}
7+
{{ range .Commits -}}
8+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
9+
{{ end }}
10+
{{ end -}}
11+
{{ else }}
12+
{{ range .Unreleased.Commits -}}
13+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
14+
{{ end }}
15+
{{ end -}}
16+
{{ end -}}
17+
18+
{{ range .Versions }}
19+
<a name="{{ .Tag.Name }}"></a>
20+
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
21+
{{ if .CommitGroups -}}
22+
{{ range .CommitGroups -}}
23+
### {{ .Title }}
24+
{{ range .Commits -}}
25+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
26+
{{ end }}
27+
{{ end -}}
28+
{{ else }}
29+
{{ range .Commits -}}
30+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
31+
{{ end }}
32+
{{ end -}}
33+
34+
{{- if .NoteGroups -}}
35+
{{ range .NoteGroups -}}
36+
### {{ .Title }}
37+
{{ range .Notes }}
38+
{{ .Body }}
39+
{{ end }}
40+
{{ end -}}
41+
{{ end -}}
42+
{{ end -}}
43+
44+
{{- if .Versions }}
45+
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
46+
{{ range .Versions -}}
47+
{{ if .Tag.Previous -}}
48+
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
49+
{{ end -}}
50+
{{ end -}}
51+
{{ end -}}

.chglog/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/terraform-module/terraform-aws-dns.git
6+
options:
7+
header:
8+
pattern: "^(.*)$"
9+
pattern_maps:
10+
- Subject

.pre-commit-config.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-added-large-files
6+
args: ['--maxkb=500']
7+
- id: check-executables-have-shebangs
8+
- id: pretty-format-json
9+
args: ['--autofix', '--no-sort-keys', '--indent=4']
10+
- id: check-byte-order-marker
11+
- id: check-case-conflict
12+
- id: check-executables-have-shebangs
13+
- id: check-merge-conflict
14+
- id: check-symlinks
15+
- id: detect-private-key
16+
- id: check-merge-conflict
17+
- id: detect-aws-credentials
18+
args: ['--allow-missing-credentials']
19+
- repo: git://github.com/antonbabenko/pre-commit-terraform
20+
rev: v1.17.0
21+
hooks:
22+
- id: terraform_fmt
23+
- id: terraform_docs
24+
- repo: git://github.com/smian/pre-commit-makefile
25+
rev: 261f8fb4b31dfdc05d1a1d7fbde1f1462ecde66d
26+
hooks:
27+
- id: makefile-doc

.tflint.hcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
config {
2+
terraform_version = "0.12.6"
3+
deep_check = true
4+
ignore_rule = {}
5+
ignore_module = {}
6+
varfile = []
7+
}

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.EXPORT_ALL_VARIABLES:
2+
3+
.PHONY: pre-commit changelog release
4+
5+
help:
6+
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
7+
8+
hooks: ## Commit hooks setup
9+
@pre-commit install
10+
@pre-commit gc
11+
@pre-commit autoupdate
12+
13+
validate: ## Validate with pre-commit hooks
14+
@pre-commit run --all-files
15+
16+
changelog:
17+
git-chglog -o CHANGELOG.md --next-tag `semtag final -s minor -o`
18+
19+
release: ## Create release version
20+
semtag final -s minor

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Jenkins Helm Module
2+
3+
## Usage example
4+
5+
Here's the gist of using it via github.
6+
7+
```terraform
8+
module dns {
9+
source = "[email protected]:terraform-aws-dns.git/jenkins?ref=v2.0.0"
10+
}
11+
```
12+
13+
14+
## Module Variables
15+
16+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
17+
## Inputs
18+
19+
| Name | Description | Type | Default | Required |
20+
|------|-------------|:----:|:-----:|:-----:|
21+
| apps | Multiple applications to deploy | map | n/a | yes |
22+
| namespace | Namespace to where deploy CI/CD | string | n/a | yes |
23+
| repository | Collection of Helm repositories | string | n/a | yes |
24+
25+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
26+
27+
## How to Contribute
28+
29+
<!-- START makefile-doc -->
30+
```
31+
$ make help
32+
hooks Commit hooks setup
33+
validate Validate with pre-commit hooks
34+
release Create release version
35+
```
36+
<!-- END makefile-doc -->

0 commit comments

Comments
 (0)