generated from rhythmictech/terraform-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rhythmictech/ENG-2953
Fix Readme, update ci, tidy up variables, add dns servers variable
- Loading branch information
Showing
13 changed files
with
133 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name: pre-commit-check | ||
on: | ||
push: | ||
branches: -- main | ||
branches: | ||
- master | ||
- prod | ||
- develop | ||
|
@@ -16,14 +16,10 @@ jobs: | |
uses: actions/setup-python@v2 | ||
- name: Install prerequisites | ||
run: ./bin/install-ubuntu.sh | ||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: ~0.13.5 | ||
- name: initialize Terraform | ||
run: terraform init --backend=false | ||
- name: pre-commit | ||
uses: pre-commit/[email protected].0 | ||
uses: pre-commit/[email protected].3 | ||
env: | ||
AWS_DEFAULT_REGION: us-east-1 | ||
# many of these are covered by better reviewdog linters below | ||
|
@@ -32,12 +28,3 @@ jobs: | |
no-commit-to-branch, | ||
terraform_tflint_nocreds, | ||
terraform_tfsec | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: ${{ failure() }} | ||
with: | ||
commit_message: Apply automatic changes | ||
commit_options: "--no-verify" | ||
# Optional commit user and author settings | ||
commit_user_name: Linter Bot | ||
commit_user_email: [email protected] | ||
commit_author: Linter Bot <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,10 @@ jobs: | |
uses: actions/setup-python@v2 | ||
- name: Install prerequisites | ||
run: ./bin/install-ubuntu.sh | ||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: ~0.13.5 | ||
- name: initialize Terraform | ||
run: terraform init --backend=false | ||
- name: pre-commit | ||
uses: pre-commit/[email protected].0 | ||
uses: pre-commit/[email protected].3 | ||
env: | ||
AWS_DEFAULT_REGION: us-east-1 | ||
# many of these are covered by better reviewdog linters below | ||
|
@@ -29,23 +25,12 @@ jobs: | |
no-commit-to-branch, | ||
terraform_tflint_nocreds, | ||
terraform_tfsec | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: ${{ failure() }} | ||
with: | ||
commit_message: Apply automatic changes | ||
commit_options: "--no-verify" | ||
# Optional commit user and author settings | ||
commit_user_name: Linter Bot | ||
commit_user_email: [email protected] | ||
commit_author: Linter Bot <[email protected]> | ||
tflint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: ~0.13.5 | ||
- name: Install prerequisites | ||
run: ./bin/install-ubuntu.sh | ||
- name: Terraform init | ||
run: terraform init --backend=false | ||
- name: tflint | ||
|
@@ -60,10 +45,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: ~0.13.5 | ||
- name: Install prerequisites | ||
run: ./bin/install-ubuntu.sh | ||
- name: Terraform init | ||
run: terraform init --backend=false | ||
- name: tfsec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.