fix upload zip command

added forgotten to-zip before
This commit is contained in:
miampf 2024-03-27 13:38:36 +01:00
parent 05a9f1a356
commit 488f12b973
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -304,15 +304,19 @@ jobs:
shell: bash
run: |
rm -rf to-zip/*
to_upload=""
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
to_upload+="to-zip/constellation-terraform"
fi
if [ -d constellation-iam-terraform ]; then
cp -r constellation-iam-terraform to-zip
rm -rf to-zip/constellation-iam-terraform/.terraform
to_upload+=" to-zip/constellation-iam-terraform"
fi
echo "TO_UPLOAD=$to_upload" >> "$GITHUB_ENV"
- name: Update tfstate
if: always()
@ -320,7 +324,6 @@ jobs:
with:
name: terraform-state-${{ steps.e2e_test.outputs.namePrefix }}
path: >
to-zip/constellation-terraform
to-zip/constellation-iam-terraform
${{ env.TO_UPLOAD }}
encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }}
overwrite: true