mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: add simulatedTargetVersion to e2e-upgrade
This allows us to build a CLI that reports the given version during an upgrade test. With this we can test patch upgrades.
This commit is contained in:
parent
4a0d531821
commit
481eeeaf3e
13
.github/workflows/e2e-upgrade.yml
vendored
13
.github/workflows/e2e-upgrade.yml
vendored
@ -37,6 +37,10 @@ on:
|
||||
description: Microservice version to target for the upgrade, empty for target's default version.
|
||||
type: string
|
||||
required: false
|
||||
simulatedTargetVersion:
|
||||
description: Enter a version to build the CLI with. This can be used to simulate a patch-upgrade.
|
||||
type: string
|
||||
required: false
|
||||
scheduled:
|
||||
description: Don't set this when triggering manually.
|
||||
type: boolean
|
||||
@ -77,6 +81,10 @@ on:
|
||||
description: Kubernetes version to target for the upgrade, empty for target's default version.
|
||||
type: string
|
||||
required: false
|
||||
simulatedTargetVersion:
|
||||
description: Enter a version to build the CLI with. This can be used to simulate a patch-upgrade.
|
||||
type: string
|
||||
required: false
|
||||
scheduled:
|
||||
description: Whether this is a scheduled run.
|
||||
type: boolean
|
||||
@ -126,6 +134,11 @@ jobs:
|
||||
ref: main
|
||||
stream: nightly
|
||||
|
||||
- name: Simulate patch upgrade
|
||||
if: inputs.simulatedTargetVersion != ''
|
||||
run: |
|
||||
echo ${{ inputs.simulatedTargetVersion }} > version.txt
|
||||
|
||||
- name: Create cluster with 'fromVersion' CLI.
|
||||
id: e2e_test
|
||||
uses: ./.github/actions/e2e_test
|
||||
|
Loading…
Reference in New Issue
Block a user