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
|
||||
})
|
||||
}
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tfplan
|
||||
path: tfplan
|
||||
apply:
|
||||
runs-on: ubuntu-latest
|
||||
needs: plan
|
||||
|
@ -94,6 +98,10 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: hashicorp/setup-terraform@v3
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: tfplan
|
||||
path: tfplan
|
||||
- name: Terraform apply
|
||||
id: apply
|
||||
run: terraform apply -auto-approve tfplan
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue