ci: fix empty image input of verify e2e on release (#1604)

* ci: fix empty image input of verify e2e on release
* ci: increase parallelism of e2e release workflow

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-04-04 04:47:26 -04:00 committed by GitHub
parent 00ced1bbc2
commit 00efc30e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 11 deletions

View File

@ -67,6 +67,9 @@ outputs:
masterSecret:
description: "The master-secret for the cluster."
value: ${{ steps.constellation-init.outputs.MASTERSECRET }}
osImageUsed:
description: "The OS image used in the cluster."
value: ${{ steps.setImage.outputs.image }}
runs:
using: "composite"
@ -132,11 +135,20 @@ runs:
constellation-conf.yaml
- name: Set image
if: inputs.osImage != ''
id: setImage
shell: bash
env:
image: ${{ inputs.osImage }}
run: yq eval -i "(.image) = \"${image}\"" constellation-conf.yaml
imageInput: ${{ inputs.osImage }}
run: |
if [[ -z "${imageInput}" ]]; then
echo "No image specified. Using default image from config."
image=$(yq eval ".image" constellation-conf.yaml)
echo "image=${image}" | tee -a "$GITHUB_OUTPUT"
exit 0
fi
yq eval -i "(.image) = \"${imageInput}\"" constellation-conf.yaml
echo "image=${imageInput}" | tee -a "$GITHUB_OUTPUT"
- name: Set instanceType
if: inputs.machineType && inputs.machineType != 'default'

View File

@ -260,7 +260,7 @@ runs:
uses: ./.github/actions/e2e_verify
with:
cloudProvider: ${{ inputs.cloudProvider }}
osImage: ${{ inputs.osImage }}
osImage: ${{ steps.constellation-create.outputs.osImageUsed }}
- name: Run recover test
if: inputs.test == 'recover'

View File

@ -35,7 +35,7 @@ jobs:
e2e-tests:
strategy:
fail-fast: false
max-parallel: 4
max-parallel: 9
matrix:
test:
[
@ -208,12 +208,11 @@ jobs:
e2e-upgrade:
strategy:
fail-fast: false
max-parallel: 1
matrix:
fromVersion:
["v2.6.0"]
cloudProvider: ["gcp", "azure"]
fail-fast: false
max-parallel: 1
matrix:
fromVersion: ["v2.6.0"]
cloudProvider: ["gcp", "azure"]
name: Run upgrade tests
secrets: inherit
permissions: