diff --git a/.github/workflows/e2e-test-provider-example.yml b/.github/workflows/e2e-test-provider-example.yml index bcd089009f5..f0bead330a7 100644 --- a/.github/workflows/e2e-test-provider-example.yml +++ b/.github/workflows/e2e-test-provider-example.yml @@ -89,6 +89,49 @@ jobs: last_three="${run_id: -3}" echo "prefix=e2e-${last_three}-${{ github.run_attempt }}" | tee -a "$GITHUB_OUTPUT" + - name: Common CSP Terraform overrides + working-directory: ${{ github.workspace }} + shell: bash + run: | + mkdir cluster + cd cluster + if [[ "${{ inputs.providerVersion }}" == "" ]]; then + vversion="v2.14.0-pre.0.20231214193540-2c50abcc919b" + else + vversion="${{ inputs.providerVersion }}" + fi + version=${vversion#v} # remove v prefix + + if [[ "${{ inputs.providerVersion }}" == "" ]]; then + iam_src="../terraform-module/iam/${{ inputs.cloudProvider }}" + infra_src="../terraform-module/${{ inputs.cloudProvider }}" + else + iam_src="https://github.com/edgelesssys/constellation/releases/download/${{ inputs.providerVersion }}/terraform-module.zip//terraform-module/iam/${{ inputs.cloudProvider }}" + infra_src="https://github.com/edgelesssys/constellation/releases/download/${{ inputs.providerVersion }}/terraform-module.zip//terraform-module/${{ inputs.cloudProvider }}" + fi + + cat > _override.tf <