Skip to content

Commit

Permalink
Create pipeline-example-multiple-containers.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jnonino authored Apr 20, 2022
1 parent 664eef7 commit 4b8f06c
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/pipeline-example-multiple-containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Example-Multiple-Containers
on: [push]
jobs:
check-format:
runs-on: ubuntu-latest
container: hashicorp/terraform
steps:
- name: Checkout repository
uses: actions/checkout@v3
- run: terraform fmt -check -recursive -diff

validate:
runs-on: ubuntu-latest
container: hashicorp/terraform
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Terraform Init
run: terraform init
working-directory: examples/multiple-containers
- name: Terraform Validate
run: terraform validate
working-directory: examples/multiple-containers

mock-plan:
runs-on: ubuntu-latest
container: hashicorp/terraform
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Terraform Init
run: terraform init
working-directory: examples/multiple-containers
- name: Terraform Plan (Mock)
run: terraform plan
working-directory: examples/multiple-containers

infracost:
runs-on: ubuntu-latest
name: Show infracost diff
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Run infracost diff
uses: infracost/infracost-gh-action@master
env:
INFRACOST_API_KEY: ${{ secrets.INFRACOST_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: examples/multiple-containers

0 comments on commit 4b8f06c

Please sign in to comment.