mirror of
https://github.com/edgelesssys/constellation.git
synced 2026-01-02 16:30:19 -05: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
1 changed files with 13 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue