manual tfstate update

-""- for release e2e test

-""- for daily e2e test
This commit is contained in:
miampf 2024-03-20 16:14:01 +01:00
parent 103d9f34b7
commit f1de3cf164
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C
3 changed files with 78 additions and 0 deletions

View File

@ -122,6 +122,32 @@ 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: |
rm -rf to-zip/*
if [ -d constellation-terraform ]; then
cp -r constellation-terraform to-zip
rm to-zip/constellation-terraform/plan.zip
rm -rf to-zip/constellation-terraform/.terraform
fi
if [ -d constellation-iam-terraform ]; then
cp -r constellation-iam-terraform to-zip
rm -rf to-zip/constellation-iam-terraform/.terraform
fi
- name: Update tfstate
if: always()
uses: ./.github/actions/artifact_upload
with:
name: terraform-state-${{ steps.e2e_test.outputs.namePrefix }}
path: >
to-zip/constellation-terraform
to-zip/constellation-iam-terraform
encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }}
overwrite: true
- name: Notify about failure
if: |
failure() &&

View File

@ -378,6 +378,32 @@ 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: |
rm -rf to-zip/*
if [ -d constellation-terraform ]; then
cp -r constellation-terraform to-zip
rm to-zip/constellation-terraform/plan.zip
rm -rf to-zip/constellation-terraform/.terraform
fi
if [ -d constellation-iam-terraform ]; then
cp -r constellation-iam-terraform to-zip
rm -rf to-zip/constellation-iam-terraform/.terraform
fi
- name: Update tfstate
if: always()
uses: ./.github/actions/artifact_upload
with:
name: terraform-state-${{ steps.e2e_test.outputs.namePrefix }}
path: >
to-zip/constellation-terraform
to-zip/constellation-iam-terraform
encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }}
overwrite: true
e2e-upgrade:
strategy:
fail-fast: false

View File

@ -378,6 +378,32 @@ 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: |
rm -rf to-zip/*
if [ -d constellation-terraform ]; then
cp -r constellation-terraform to-zip
rm to-zip/constellation-terraform/plan.zip
rm -rf to-zip/constellation-terraform/.terraform
fi
if [ -d constellation-iam-terraform ]; then
cp -r constellation-iam-terraform to-zip
rm -rf to-zip/constellation-iam-terraform/.terraform
fi
- name: Update tfstate
if: always()
uses: ./.github/actions/artifact_upload
with:
name: terraform-state-${{ steps.e2e_test.outputs.namePrefix }}
path: >
to-zip/constellation-terraform
to-zip/constellation-iam-terraform
encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }}
overwrite: true
- name: Notify about failure
if: |
failure() &&