ci: Add a choice variable to select the network_backend type in debug dispatch workflow
diff --git a/.github/workflows/ceph.yml b/.github/workflows/ceph.yml
index ea5638c..83292a8 100644
--- a/.github/workflows/ceph.yml
+++ b/.github/workflows/ceph.yml
@@ -26,6 +26,14 @@
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
+ network_backend:
+ type: choice
+ description: 'Network backend type'
+ required: true
+ default: 'ovn'
+ options:
+ - openvswitch
+ - ovn
jobs:
debug:
@@ -33,12 +41,8 @@
if: github.event_name == 'workflow_dispatch' && inputs.debug_enabled
strategy:
fail-fast: false
- matrix:
- network_backend:
- - openvswitch
- - ovn
concurrency:
- group: ${{ github.ref }}-${{ matrix.network_backend }}
+ group: ${{ github.ref }}-${{ inputs.network_backend }}
cancel-in-progress: true
steps:
- name: Checkout project
@@ -65,6 +69,8 @@
- name: Run Molecule Converge
run: poetry run molecule converge -s ceph
+ env:
+ ATMOSPHERE_NETWORK_BACKEND: ${{ inputs.network_backend }}
# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session