-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move Ansible setup and teardown to separate components
- Loading branch information
1 parent
2922a19
commit ecb4810
Showing
15 changed files
with
396 additions
and
66 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* @rhythmictech/engineering |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: misspell | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- prod | ||
- develop | ||
|
||
jobs: | ||
misspell: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: misspell | ||
uses: reviewdog/action-misspell@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
locale: "US" | ||
reporter: github-check | ||
filter_mode: nofilter | ||
level: error |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
name: pre-commit-check | ||
on: | ||
push: | ||
branches: -- main | ||
- master | ||
- prod | ||
- develop | ||
|
||
jobs: | ||
pre-commit-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
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.12.29 | ||
- name: initialize Terraform | ||
run: terraform init --backend=false | ||
- name: pre-commit | ||
uses: pre-commit/[email protected] | ||
env: | ||
AWS_DEFAULT_REGION: us-east-1 | ||
# many of these are covered by better reviewdog linters below | ||
SKIP: >- | ||
terraform_tflint_deep, | ||
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 |
---|---|---|
@@ -0,0 +1,97 @@ | ||
--- | ||
name: pull request | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
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.12.29 | ||
- name: initialize Terraform | ||
run: terraform init --backend=false | ||
- name: pre-commit | ||
uses: pre-commit/[email protected] | ||
env: | ||
AWS_DEFAULT_REGION: us-east-1 | ||
# many of these are covered by better reviewdog linters below | ||
SKIP: >- | ||
terraform_tflint_deep, | ||
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.12.29 | ||
- name: Terraform init | ||
run: terraform init --backend=false | ||
- name: tflint | ||
uses: reviewdog/action-tflint@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-check | ||
filter_mode: added | ||
flags: --module | ||
level: error | ||
tfsec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: ~0.12.29 | ||
- name: Terraform init | ||
run: terraform init --backend=false | ||
- name: tfsec | ||
uses: reviewdog/action-tfsec@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-check | ||
filter_mode: added | ||
level: warning | ||
misspell: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: misspell | ||
uses: reviewdog/action-misspell@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
locale: "US" | ||
reporter: github-pr-check | ||
filter_mode: added | ||
level: error | ||
yamllint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: yamllint | ||
uses: reviewdog/action-yamllint@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-check | ||
filter_mode: added | ||
level: error |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: tflint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- prod | ||
- develop | ||
|
||
jobs: | ||
tflint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: ~0.12.29 | ||
- name: Terraform init | ||
run: terraform init --backend=false | ||
- name: tflint | ||
uses: reviewdog/action-tflint@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-check | ||
filter_mode: nofilter | ||
flags: --module | ||
level: error |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: tfsec | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- prod | ||
- develop | ||
|
||
jobs: | ||
tfsec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: ~0.12.29 | ||
- name: Terraform init | ||
run: terraform init --backend=false | ||
- name: tfsec | ||
uses: reviewdog/action-tfsec@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-check | ||
filter_mode: nofilter | ||
level: error |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: yamllint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- prod | ||
- develop | ||
|
||
jobs: | ||
yamllint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: yamllint | ||
uses: reviewdog/action-yamllint@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-check | ||
filter_mode: nofilter | ||
level: error |
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.