diff --git a/.github/workflows/e2e-parallel-destroy.yml b/.github/workflows/e2e-parallel-destroy.yml index 3ba004f4ad..e00efac3cc 100644 --- a/.github/workflows/e2e-parallel-destroy.yml +++ b/.github/workflows/e2e-parallel-destroy.yml @@ -74,17 +74,17 @@ jobs: - name: Pre Setup id: pre-setup run: | - mkdir -p deploy/e2e/gh-e2e-test + mkdir -p deploy/e2e-test if [[ ${{ matrix.example_path }} == deploy/* ]] then echo "Skipping pre-setup for ${{ matrix.example_path }}" - cp -R ${{ matrix.example_path }}/* deploy/e2e/gh-e2e-test/ + cp -R ${{ matrix.example_path }}/* deploy/e2e-test/ else echo "Running pre-setup for ${{ matrix.example_path }}" - cp -R deploy/e2e/gh-e2e-template/* deploy/e2e/gh-e2e-test/ - sed -i "s!REPLACE_ME!${{ matrix.tenant_name }}!g" deploy/e2e/gh-e2e-test/base.tfvars - sed -i "s!TF_STATE_PATH!${{ matrix.example_path }}!g" deploy/e2e/gh-e2e-test/backend.conf - sed -i "s!EXAMPLE_PATH!${{ matrix.example_path }}!g" deploy/e2e/gh-e2e-test/main.tf + cp -R deploy/e2e-template/* deploy/e2e-test/ + sed -i "s!REPLACE_ME!${{ matrix.tenant_name }}!g" deploy/e2e-test/base.tfvars + sed -i "s!TF_STATE_PATH!${{ matrix.example_path }}!g" deploy/e2e-test/backend.conf + sed -i "s!EXAMPLE_PATH!${{ matrix.example_path }}!g" deploy/e2e-test/main.tf fi continue-on-error: false @@ -123,24 +123,24 @@ jobs: - name: Terraform Init id: init run: terraform init -backend-config backend.conf -reconfigure - working-directory: deploy/e2e/gh-e2e-test + working-directory: deploy/e2e-test continue-on-error: false - name: Terraform Validate id: validate - working-directory: deploy/e2e/gh-e2e-test + working-directory: deploy/e2e-test run: terraform validate -no-color continue-on-error: false - name: Terraform Plan Destroy id: plan-destroy - working-directory: deploy/e2e/gh-e2e-test + working-directory: deploy/e2e-test run: terraform plan -destroy -var-file base.tfvars -no-color continue-on-error: false - name: Terraform Destroy id: destroy - working-directory: deploy/e2e/gh-e2e-test + working-directory: deploy/e2e-test run: | reverse_array=$(echo ${{ env.DEPLOYMENT_ORDER }} | awk -F, '{for (i=NF; i>0; --i) printf "%s%s", (i0; --i) printf "%s%s", (i