ci: select correct target version for upgrade e2e test in release pipeline (#1874)

This commit is contained in:
Malte Poll 2023-06-05 13:56:16 +02:00 committed by GitHub
parent c446f36b0f
commit 900d51d49f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 12 deletions

View File

@ -15,12 +15,20 @@ on:
type: string
description: "Git ref to checkout"
required: false
targetVersion:
type: string
description: "Target version to test"
required: true
workflow_call:
inputs:
ref:
type: string
description: "Git ref to checkout"
required: true
targetVersion:
type: string
description: "Target version to test"
required: true
jobs:
e2e-tests:
@ -218,18 +226,7 @@ jobs:
with:
artifactNameSuffix: ${{ steps.e2e_test.outputs.namePrefix }}
determine-version:
runs-on: ubuntu-22.04
outputs:
targetVersion: ${{ steps.determine-version.outputs.targetVersion }}
steps:
- name: Determine version
id: determine-version
shell: bash
run: echo "targetVersion=$(cat version.txt)" | tee -a "$GITHUB_OUTPUT"
e2e-upgrade:
needs: determine-version
strategy:
fail-fast: false
max-parallel: 1
@ -246,7 +243,7 @@ jobs:
uses: ./.github/workflows/e2e-upgrade.yml
with:
fromVersion: ${{ matrix.fromVersion }}
toImage: ${{ needs.determine-version.outputs.targetVersion }}
toImage: ${{ inputs.targetVersion }}
cloudProvider: ${{ matrix.cloudProvider }}
workerNodesCount: 2
controlNodesCount: 3

View File

@ -279,6 +279,7 @@ jobs:
secrets: inherit
with:
ref: ${{ needs.verify-inputs.outputs.WORKING_BRANCH }}
targetVersion: ${{ inputs.version }}
mini-e2e:
name: Run mini E2E tests