Switch to for_each for log forwarding resources #137
Workflow file for this run
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
name: 'CICD' | |
on: | |
push: | |
pull_request: | |
jobs: | |
terraform: | |
name: 'Terraform' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@master | |
- uses: hashicorp/setup-terraform@v1 | |
with: | |
terraform_version: 0.13.x | |
- run: terraform fmt | |
- run: terraform init | |
- name: 'Inject provider configs for validate command' | |
run: | | |
cat > providers.tf <<EOF | |
provider "aws" { | |
region = "us-east-2" | |
} | |
provider "datadog" { | |
api_key = "" | |
app_key = "" | |
} | |
EOF | |
- run: terraform validate | |
release: | |
if: github.event_name == 'push' | |
needs: terraform | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Semantic Release | |
id: semantic | |
uses: cycjimmy/semantic-release-action@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
semantic_version: 19 | |
extra_plugins: | | |
@semantic-release/changelog@6 | |
@semantic-release/git@10 |