Use artifacts to persist tfplan
This commit is contained in:
parent
68fc0dc1e0
commit
56037fc11e
1 changed files with 8 additions and 0 deletions
|
@ -87,6 +87,10 @@ jobs:
|
||||||
body: output
|
body: output
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: tfplan
|
||||||
|
path: tfplan
|
||||||
apply:
|
apply:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: plan
|
needs: plan
|
||||||
|
@ -94,6 +98,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: hashicorp/setup-terraform@v3
|
- uses: hashicorp/setup-terraform@v3
|
||||||
|
- uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: tfplan
|
||||||
|
path: tfplan
|
||||||
- name: Terraform apply
|
- name: Terraform apply
|
||||||
id: apply
|
id: apply
|
||||||
run: terraform apply -auto-approve tfplan
|
run: terraform apply -auto-approve tfplan
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue