Merge pull request #1285 from MHRA/updateWebReleaseYaml #349
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: infrastructure | |
on: | |
push: | |
paths: | |
- infrastructure/** | |
- .github/workflows/infrastructure.yaml | |
env: | |
IMAGE: mhraproductsnonprodregistry.azurecr.io/products/doc-index-updater | |
jobs: | |
validate: | |
name: Validate Terraform config | |
container: | |
image: hashicorp/terraform:light | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repo | |
uses: actions/checkout@v2 | |
with: | |
path: products | |
- name: Validate prod environment | |
working-directory: ./products/infrastructure/environments/prod | |
run: | | |
terraform init -backend=false | |
terraform validate | |
- name: Validate non-prod environment | |
working-directory: ./products/infrastructure/environments/non-prod | |
run: | | |
terraform init -backend=false | |
terraform validate | |
- name: Validate dev environment | |
working-directory: ./products/infrastructure/environments/dev | |
run: | | |
terraform init -backend=false | |
terraform validate |