ci: Upload e2e terraform state as artifact (#2853)

This commit is contained in:
miampf 2024-01-31 15:22:05 +00:00 committed by GitHub
parent 2140fa5452
commit eabcdbe931
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -275,3 +275,21 @@ runs:
path: >
!(terraform).log
encryptionSecret: ${{ inputs.encryptionSecret }}
- name: Prepare terraform state folders
if: always()
shell: bash
run: |
rm constellation-terraform/plan.zip
rm -rf constellation-terraform/.terraform constellation-iam-terraform/.terraform
- name: Upload terraform state
if: always()
uses: ./.github/actions/artifact_upload
with:
name: terraform-state-${{ inputs.artifactNameSuffix }}
path: >
constellation-terraform
constellation-iam-terraform
encryptionSecret: ${{ inputs.encryptionSecret }}