ci: don't delete local cached providers when uploading Terraform state (#2884)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-02-01 09:54:40 +01:00 committed by GitHub
parent 5ecc5ed9c9
commit befc7cdf63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -280,8 +280,11 @@ runs:
if: always()
shell: bash
run: |
rm constellation-terraform/plan.zip
rm -rf constellation-terraform/.terraform constellation-iam-terraform/.terraform
mkdir to-zip
cp -r constellation-terraform to-zip
cp -r constellation-iam-terraform to-zip
rm to-zip/constellation-terraform/plan.zip
rm -rf to-zip/constellation-terraform/.terraform to-zip/constellation-iam-terraform/.terraform
- name: Upload terraform state
if: always()
@ -289,7 +292,6 @@ runs:
with:
name: terraform-state-${{ inputs.artifactNameSuffix }}
path: >
constellation-terraform
constellation-iam-terraform
to-zip/constellation-terraform
to-zip/constellation-iam-terraform
encryptionSecret: ${{ inputs.encryptionSecret }}