mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: select correct target version for upgrade e2e test in release pipeline (#1874)
This commit is contained in:
parent
c446f36b0f
commit
900d51d49f
21
.github/workflows/e2e-test-release.yml
vendored
21
.github/workflows/e2e-test-release.yml
vendored
@ -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
|
||||
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user