Skip to content

Commit a80f318

Browse files
authored
fix: update CI/CD process to enable auto-release workflow (#4)
1 parent 2691463 commit a80f318

File tree

22 files changed

+450
-402
lines changed

22 files changed

+450
-402
lines changed

.chglog/CHANGELOG.tpl.md

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

.chglog/config.yml

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

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ insert_final_newline = true
1414
max_line_length = 80
1515
trim_trailing_whitespace = true
1616

17-
[*.py]
18-
indent_size = 4
19-
2017
[*.{tf,tfvars}]
2118
indent_size = 2
2219
indent_style = space

.gitignore

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
1-
.terraform
2-
*.tfstate.backup
1+
# Local .terraform directories
2+
**/.terraform/*
3+
4+
# Terraform lockfile
5+
.terraform.lock.hcl
6+
7+
# .tfstate files
38
*.tfstate
9+
*.tfstate.*
10+
11+
# Crash log files
12+
crash.log
13+
14+
# Exclude all .tfvars files, which are likely to contain sentitive data, such as
15+
# password, private keys, and other secrets. These should not be part of version
16+
# control as they are data points which are potentially sensitive and subject
17+
# to change depending on the environment.
418
*.tfvars
5-
*.tfplan
6-
.terraform.lock.hcl
719

8-
tmp/
20+
# Ignore override files as they are usually used to override resources locally and so
21+
# are not checked in
22+
override.tf
23+
override.tf.json
24+
*_override.tf
25+
*_override.tf.json
26+
27+
# Ignore CLI configuration files
28+
.terraformrc
29+
terraform.rc
30+
/tmp

.pre-commit-config.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
repos:
2-
- repo: git://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.45.0
2+
- repo: https://github.com/antonbabenko/pre-commit-terraform
3+
rev: v1.58.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate
77
- id: terraform_docs
8+
args:
9+
- '--args=--lockfile=false'
810
- id: terraform_tflint
911
args:
1012
- '--args=--only=terraform_deprecated_interpolation'
@@ -20,7 +22,8 @@ repos:
2022
- '--args=--only=terraform_required_providers'
2123
- '--args=--only=terraform_standard_module_structure'
2224
- '--args=--only=terraform_workspace_remote'
23-
- repo: git://github.com/pre-commit/pre-commit-hooks
24-
rev: v3.3.0
25+
- repo: https://github.com/pre-commit/pre-commit-hooks
26+
rev: v4.0.1
2527
hooks:
2628
- id: check-merge-conflict
29+
- id: end-of-file-fixer

.releaserc.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"branches": [
3+
"main",
4+
"master"
5+
],
6+
"ci": false,
7+
"plugins": [
8+
"@semantic-release/commit-analyzer",
9+
"@semantic-release/release-notes-generator",
10+
[
11+
"@semantic-release/github",
12+
{
13+
"successComment":
14+
"This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:",
15+
"labels": false,
16+
"releasedLabels": false
17+
}
18+
],
19+
[
20+
"@semantic-release/changelog",
21+
{
22+
"changelogFile": "CHANGELOG.md",
23+
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file."
24+
}
25+
],
26+
[
27+
"@semantic-release/git",
28+
{
29+
"assets": [
30+
"CHANGELOG.md"
31+
],
32+
"message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
33+
}
34+
]
35+
]
36+
}

CHANGELOG.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
# Change Log
2-
3-
All notable changes to this project will be documented in this file.
4-
5-
<a name="unreleased"></a>
6-
## [Unreleased]
7-
8-
9-
101
<a name="v1.2.0"></a>
112
## [v1.2.0] - 2021-05-25
123

0 commit comments

Comments
 (0)