actually prepare the new state for upload

This commit is contained in:
miampf 2024-03-01 15:39:30 +01:00
parent e0db8ed473
commit 632ab5c075
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -279,6 +279,16 @@ jobs:
azureCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
gcpServiceAccount: "iam-e2e@constellation-e2e.iam.gserviceaccount.com"
- name: Prepare terraform state folders
if: always()
shell: bash
run: |
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: Update tfstate
if: always()
uses: ./.github/actions/artifact_upload