-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create pipeline-example-multiple-containers.yml
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
.github/workflows/pipeline-example-multiple-containers.yml
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
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 |