|
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 | | -# |
| 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 | + |
17 | 52 | # - name: Configure AWS Credentials |
18 | 53 | # uses: clouddrove/configure-aws-credentials@v1 |
19 | 54 | # with: |
20 | 55 | # aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }} |
21 | 56 | # aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }} |
22 | 57 | # 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() |
| 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