From 6fcb08d111035e2d3fac53c82935de5725d07cb5 Mon Sep 17 00:00:00 2001 From: Adrian Stobbe Date: Fri, 29 Dec 2023 17:57:48 +0100 Subject: [PATCH] fix ci --- .../workflows/e2e-test-provider-example.yml | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/e2e-test-provider-example.yml b/.github/workflows/e2e-test-provider-example.yml index 6b0915ff70f..ca4f19451b0 100644 --- a/.github/workflows/e2e-test-provider-example.yml +++ b/.github/workflows/e2e-test-provider-example.yml @@ -208,6 +208,21 @@ jobs: infra_src="https://github.com/edgelesssys/constellation/releases/download/${{ inputs.providerVersion }}/terraform-module.zip//terraform-module/${{ inputs.cloudProvider }}" fi + # by default use latest nightly image for devbuilds and release image otherwise + if [[ "${{ inputs.providerVersion }}" == "" ]]; then + if [[ "${{ inputs.image }}" == "" ]]; then + image_version="${{ steps.find-latest-image.outputs.output }}" + else + image_version="${{ inputs.image }}" + fi + else + if [[ "${{ inputs.image }}" == "" ]]; then + image_version="${prefixed_version}" + else + image_version="${{ inputs.image }}" + fi + fi + cat > _override.tf <