Skip to content

Commit fa15a8f

Browse files
inital commit
1 parent 4e6de8c commit fa15a8f

File tree

2 files changed

+159
-159
lines changed

2 files changed

+159
-159
lines changed

.github/workflows/terraform.yml

Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,82 @@
1-
name: static-checks
2-
3-
on:
4-
pull_request:
5-
6-
jobs:
7-
versionExtract:
8-
name: Get min/max versions
9-
runs-on: ubuntu-latest
10-
11-
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v2
14-
15-
- name: Terraform min/max versions
16-
id: minMax
17-
uses: clowdhaus/terraform-min-max@main
18-
outputs:
19-
minVersion: ${{ steps.minMax.outputs.minVersion }}
20-
maxVersion: ${{ steps.minMax.outputs.maxVersion }}
21-
22-
23-
versionEvaluate:
24-
name: Evaluate Terraform versions
25-
runs-on: ubuntu-latest
26-
needs: versionExtract
27-
strategy:
28-
fail-fast: false
29-
matrix:
30-
version:
31-
- ${{ needs.versionExtract.outputs.minVersion }}
32-
- ${{ needs.versionExtract.outputs.maxVersion }}
33-
directory:
34-
- _example/
35-
36-
steps:
37-
- name: Checkout
38-
uses: actions/checkout@v2
39-
40-
- name: Install Terraform v${{ matrix.version }}
41-
uses: hashicorp/setup-terraform@v1
42-
with:
43-
terraform_version: ${{ matrix.version }}
44-
45-
- id: 'auth'
46-
name: 'Authenticate to Google Cloud'
47-
uses: 'google-github-actions/auth@v1'
48-
with:
49-
workload_identity_provider: 'clouddrove/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
50-
service_account: '[email protected]'
51-
52-
- name: Init & validate v${{ matrix.version }}
53-
run: |
54-
cd ${{ matrix.directory }}
55-
terraform init
56-
terraform validate
57-
58-
- name: tflint
59-
uses: reviewdog/action-tflint@master
60-
with:
61-
github_token: ${{ secrets.GITHUB }}
62-
working_directory: ${{ matrix.directory }}
63-
fail_on_error: 'true'
64-
filter_mode: 'nofilter'
65-
flags: '--module'
66-
67-
format:
68-
name: Check code format
69-
runs-on: ubuntu-latest
70-
needs: versionExtract
71-
72-
steps:
73-
- name: Checkout
74-
uses: actions/checkout@v2
75-
76-
- name: Install Terraform v${{ needs.versionExtract.outputs.maxVersion }}
77-
uses: hashicorp/setup-terraform@v1
78-
with:
79-
terraform_version: ${{ needs.versionExtract.outputs.maxVersion }}
80-
81-
- name: Check Terraform format changes
82-
run: terraform fmt --recursive
1+
#name: static-checks
2+
#
3+
#on:
4+
# pull_request:
5+
#
6+
#jobs:
7+
# versionExtract:
8+
# name: Get min/max versions
9+
# runs-on: ubuntu-latest
10+
#
11+
# steps:
12+
# - name: Checkout
13+
# uses: actions/checkout@v2
14+
#
15+
# - name: Terraform min/max versions
16+
# id: minMax
17+
# uses: clowdhaus/terraform-min-max@main
18+
# outputs:
19+
# minVersion: ${{ steps.minMax.outputs.minVersion }}
20+
# maxVersion: ${{ steps.minMax.outputs.maxVersion }}
21+
#
22+
#
23+
# versionEvaluate:
24+
# name: Evaluate Terraform versions
25+
# runs-on: ubuntu-latest
26+
# needs: versionExtract
27+
# strategy:
28+
# fail-fast: false
29+
# matrix:
30+
# version:
31+
# - ${{ needs.versionExtract.outputs.minVersion }}
32+
# - ${{ needs.versionExtract.outputs.maxVersion }}
33+
# directory:
34+
# - _example/
35+
#
36+
# steps:
37+
# - name: Checkout
38+
# uses: actions/checkout@v2
39+
#
40+
# - name: Install Terraform v${{ matrix.version }}
41+
# uses: hashicorp/setup-terraform@v1
42+
# with:
43+
# terraform_version: ${{ matrix.version }}
44+
#
45+
# - id: 'auth'
46+
# name: 'Authenticate to Google Cloud'
47+
# uses: 'google-github-actions/auth@v1'
48+
# with:
49+
# workload_identity_provider: 'clouddrove/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
50+
# service_account: '[email protected]'
51+
#
52+
# - name: Init & validate v${{ matrix.version }}
53+
# run: |
54+
# cd ${{ matrix.directory }}
55+
# terraform init
56+
# terraform validate
57+
#
58+
# - name: tflint
59+
# uses: reviewdog/action-tflint@master
60+
# with:
61+
# github_token: ${{ secrets.GITHUB }}
62+
# working_directory: ${{ matrix.directory }}
63+
# fail_on_error: 'true'
64+
# filter_mode: 'nofilter'
65+
# flags: '--module'
66+
#
67+
# format:
68+
# name: Check code format
69+
# runs-on: ubuntu-latest
70+
# needs: versionExtract
71+
#
72+
# steps:
73+
# - name: Checkout
74+
# uses: actions/checkout@v2
75+
#
76+
# - name: Install Terraform v${{ needs.versionExtract.outputs.maxVersion }}
77+
# uses: hashicorp/setup-terraform@v1
78+
# with:
79+
# terraform_version: ${{ needs.versionExtract.outputs.maxVersion }}
80+
#
81+
# - name: Check Terraform format changes
82+
# run: terraform fmt --recursive

.github/workflows/terratest.yml

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,77 @@
1-
name: 'Terratest GitHub Actions'
2-
on:
3-
pull_request:
4-
branches:
5-
- master
6-
types: [labeled]
7-
8-
jobs:
9-
DNS:
10-
name: 'Terratest for DNS'
11-
runs-on: ubuntu-latest
12-
steps:
13-
14-
- name: 'Checkout'
15-
uses: actions/checkout@master
16-
17-
- name: Configure AWS Credentials
18-
uses: clouddrove/configure-aws-credentials@v1
19-
with:
20-
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }}
21-
aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
22-
aws-region: us-east-2
23-
24-
- name: 'Terratest Generate Certificate DNS'
25-
if: ${{ github.event.label.name == 'terratest' }}
26-
uses: 'clouddrove/[email protected]'
27-
with:
28-
actions_subcommand: 'terratest'
29-
tf_actions_working_dir: _test/generate-certificate-dns
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
33-
- name: 'Slack Notification'
34-
uses: clouddrove/action-slack@v2
35-
with:
36-
status: ${{ job.status }}
37-
fields: repo,author
38-
author_name: 'CloudDrove'
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
41-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
42-
if: always()
43-
44-
Email:
45-
name: 'Terratest for Email'
46-
runs-on: ubuntu-latest
47-
steps:
48-
49-
- name: 'Checkout'
50-
uses: actions/checkout@master
51-
52-
- name: Configure AWS Credentials
53-
uses: clouddrove/configure-aws-credentials@v1
54-
with:
55-
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }}
56-
aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
57-
aws-region: us-east-2
58-
59-
- name: 'Terratest Generate Certificate Email'
60-
if: ${{ github.event.label.name == 'terratest' }}
61-
uses: 'clouddrove/[email protected]'
62-
with:
63-
actions_subcommand: 'terratest'
64-
tf_actions_working_dir: _test/generate-certificate-email
65-
env:
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67-
68-
- name: 'Slack Notification'
69-
uses: clouddrove/action-slack@v2
70-
with:
71-
status: ${{ job.status }}
72-
fields: repo,author
73-
author_name: 'CloudDrove'
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
76-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
77-
if: always()
1+
#name: 'Terratest GitHub Actions'
2+
#on:
3+
# pull_request:
4+
# branches:
5+
# - master
6+
# types: [labeled]
7+
#
8+
#jobs:
9+
# DNS:
10+
# name: 'Terratest for DNS'
11+
# runs-on: ubuntu-latest
12+
# steps:
13+
#
14+
# - name: 'Checkout'
15+
# uses: actions/checkout@master
16+
#
17+
# - name: Configure AWS Credentials
18+
# uses: clouddrove/configure-aws-credentials@v1
19+
# with:
20+
# aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }}
21+
# aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
22+
# aws-region: us-east-2
23+
#
24+
# - name: 'Terratest Generate Certificate DNS'
25+
# if: ${{ github.event.label.name == 'terratest' }}
26+
# uses: 'clouddrove/[email protected]'
27+
# with:
28+
# actions_subcommand: 'terratest'
29+
# tf_actions_working_dir: _test/generate-certificate-dns
30+
# env:
31+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
#
33+
# - name: 'Slack Notification'
34+
# uses: clouddrove/action-slack@v2
35+
# with:
36+
# status: ${{ job.status }}
37+
# fields: repo,author
38+
# author_name: 'CloudDrove'
39+
# env:
40+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
41+
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
42+
# if: always()
43+
#
44+
# Email:
45+
# name: 'Terratest for Email'
46+
# runs-on: ubuntu-latest
47+
# steps:
48+
#
49+
# - name: 'Checkout'
50+
# uses: actions/checkout@master
51+
#
52+
# - name: Configure AWS Credentials
53+
# uses: clouddrove/configure-aws-credentials@v1
54+
# with:
55+
# aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }}
56+
# aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
57+
# aws-region: us-east-2
58+
#
59+
# - name: 'Terratest Generate Certificate Email'
60+
# if: ${{ github.event.label.name == 'terratest' }}
61+
# uses: 'clouddrove/[email protected]'
62+
# with:
63+
# actions_subcommand: 'terratest'
64+
# tf_actions_working_dir: _test/generate-certificate-email
65+
# env:
66+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
#
68+
# - name: 'Slack Notification'
69+
# uses: clouddrove/action-slack@v2
70+
# with:
71+
# status: ${{ job.status }}
72+
# fields: repo,author
73+
# author_name: 'CloudDrove'
74+
# env:
75+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
76+
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
77+
# if: always()

0 commit comments

Comments
 (0)