mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-13 09:00:38 -05:00
ci: select correct target version for upgrade e2e test in release pipeline (#1874)
This commit is contained in:
parent
c446f36b0f
commit
900d51d49f
2 changed files with 10 additions and 12 deletions
21
.github/workflows/e2e-test-release.yml
vendored
21
.github/workflows/e2e-test-release.yml
vendored
|
|
@ -15,12 +15,20 @@ on:
|
||||||
type: string
|
type: string
|
||||||
description: "Git ref to checkout"
|
description: "Git ref to checkout"
|
||||||
required: false
|
required: false
|
||||||
|
targetVersion:
|
||||||
|
type: string
|
||||||
|
description: "Target version to test"
|
||||||
|
required: true
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
ref:
|
ref:
|
||||||
type: string
|
type: string
|
||||||
description: "Git ref to checkout"
|
description: "Git ref to checkout"
|
||||||
required: true
|
required: true
|
||||||
|
targetVersion:
|
||||||
|
type: string
|
||||||
|
description: "Target version to test"
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e-tests:
|
e2e-tests:
|
||||||
|
|
@ -218,18 +226,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
artifactNameSuffix: ${{ steps.e2e_test.outputs.namePrefix }}
|
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:
|
e2e-upgrade:
|
||||||
needs: determine-version
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 1
|
max-parallel: 1
|
||||||
|
|
@ -246,7 +243,7 @@ jobs:
|
||||||
uses: ./.github/workflows/e2e-upgrade.yml
|
uses: ./.github/workflows/e2e-upgrade.yml
|
||||||
with:
|
with:
|
||||||
fromVersion: ${{ matrix.fromVersion }}
|
fromVersion: ${{ matrix.fromVersion }}
|
||||||
toImage: ${{ needs.determine-version.outputs.targetVersion }}
|
toImage: ${{ inputs.targetVersion }}
|
||||||
cloudProvider: ${{ matrix.cloudProvider }}
|
cloudProvider: ${{ matrix.cloudProvider }}
|
||||||
workerNodesCount: 2
|
workerNodesCount: 2
|
||||||
controlNodesCount: 3
|
controlNodesCount: 3
|
||||||
|
|
|
||||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
|
@ -279,6 +279,7 @@ jobs:
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.verify-inputs.outputs.WORKING_BRANCH }}
|
ref: ${{ needs.verify-inputs.outputs.WORKING_BRANCH }}
|
||||||
|
targetVersion: ${{ inputs.version }}
|
||||||
|
|
||||||
mini-e2e:
|
mini-e2e:
|
||||||
name: Run mini E2E tests
|
name: Run mini E2E tests
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue