Skip to content

Update versions.tf #148

Update versions.tf

Update versions.tf #148

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