Use artifacts to persist tfplan

This commit is contained in:
Ben Martin 2024-06-04 00:28:39 +01:00
parent 68fc0dc1e0
commit 56037fc11e
No known key found for this signature in database
GPG key ID: 11936493893207E4

View file

@ -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