Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Dec 29, 2023
1 parent 25b70bc commit e79ef94
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/e2e-test-provider-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
terraform {
required_providers {
Expand All @@ -223,20 +238,6 @@ jobs:
worker_count = 1
}
# 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
locals {
name = "${{ steps.create-prefix.outputs.prefix }}"
Expand Down Expand Up @@ -350,7 +351,7 @@ jobs:
if [[ "${{ inputs.toImage }}" != "" ]]; then
cat >> _override.tf <<EOF
locals {
image_version = ${{ inputs.toImage && inputs.toImage || steps.find-latest-image.outputs.output }}
image_version = "${{ inputs.toImage && inputs.toImage || steps.find-latest-image.outputs.output }}"
}
EOF
fi
Expand Down

0 comments on commit e79ef94

Please sign in to comment.