mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-22 22:14:43 -04:00
e2e: find default image if no input image specified
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
cbd5a4a118
commit
4249050116
1 changed files with 35 additions and 1 deletions
36
.github/workflows/e2e-test-manual.yml
vendored
36
.github/workflows/e2e-test-manual.yml
vendored
|
@ -37,6 +37,7 @@ on:
|
||||||
osImage:
|
osImage:
|
||||||
description: "Full name of OS image (CSP independent image version UID)."
|
description: "Full name of OS image (CSP independent image version UID)."
|
||||||
type: string
|
type: string
|
||||||
|
default: "main latest"
|
||||||
required: true
|
required: true
|
||||||
isDebugImage:
|
isDebugImage:
|
||||||
description: "Is OS image a debug image?"
|
description: "Is OS image a debug image?"
|
||||||
|
@ -56,11 +57,44 @@ env:
|
||||||
ARM_TENANT_ID: ${{ secrets.AZURE_E2E_TENANT_ID }}
|
ARM_TENANT_ID: ${{ secrets.AZURE_E2E_TENANT_ID }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
find-latest-image:
|
||||||
|
name: Find latest debug image
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
outputs:
|
||||||
|
image: ${{ steps.find-latest-image.outputs.image }}${{ steps.check-input.outputs.image }}
|
||||||
|
steps:
|
||||||
|
- name: Check input
|
||||||
|
id: check-input
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ "${{ inputs.osImage }}" == "main latest" ]]; then
|
||||||
|
echo "Using latest debug image from main."
|
||||||
|
else
|
||||||
|
echo "Using image '${{ inputs.osImage }}'."
|
||||||
|
echo "image=${{ inputs.osImage }}" >> "$GITHUB_OUTPUT"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
- name: Find latest image
|
||||||
|
id: find-latest-image
|
||||||
|
uses: ./.github/actions/find_latest_image
|
||||||
|
with:
|
||||||
|
imageType: debug
|
||||||
|
|
||||||
e2e-test-manual:
|
e2e-test-manual:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: read
|
contents: read
|
||||||
|
needs: [find-latest-image]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
||||||
|
@ -107,7 +141,7 @@ jobs:
|
||||||
azureClientSecret: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
azureClientSecret: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
||||||
azureUserAssignedIdentity: ${{ secrets.AZURE_E2E_USER_ASSIGNED_IDENTITY }}
|
azureUserAssignedIdentity: ${{ secrets.AZURE_E2E_USER_ASSIGNED_IDENTITY }}
|
||||||
azureResourceGroup: ${{ steps.az_resource_group_gen.outputs.res_group_name }}
|
azureResourceGroup: ${{ steps.az_resource_group_gen.outputs.res_group_name }}
|
||||||
osImage: ${{ github.event.inputs.osImage }}
|
osImage: ${{ needs.find-latest-image.outputs.image }}
|
||||||
isDebugImage: ${{ github.event.inputs.isDebugImage }}
|
isDebugImage: ${{ github.event.inputs.isDebugImage }}
|
||||||
|
|
||||||
- name: Always terminate cluster
|
- name: Always terminate cluster
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue