Skip to content

Commit 5cd694c

Browse files
committed
Add matrix to enable ubuntu noble run
1 parent a3069e4 commit 5cd694c

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/stackhpc-multinode.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,31 @@ name: Multinode
5555
type: string
5656
default: main
5757
jobs:
58+
generate-vector:
59+
runs-on: ubuntu-latest
60+
outputs:
61+
vector: ${{ steps.set-vector.outputs.vector }}
62+
steps:
63+
- name: Generate build vector
64+
id: set-vector
65+
run: |
66+
if [[ ${{ inputs.os_distribution == 'rocky' }} ]]; then
67+
echo "vector={\"distro\": \"rocky\", \"release\": \"9\", \"ssh_user\": \"cloud-user\"}" >> $GITHUB_OUTPUT
68+
elif [[ ${{ inputs.os_distribution == 'ubuntu-jammy' }} ]]; then
69+
echo "vector={\"distro\": \"ubuntu\", \"release\": \"jammy\", \"ssh_user\": \"ubuntu\"}" >> $GITHUB_OUTPUT
70+
else
71+
echo "vector={\"distro\": \"ubuntu\", \"release\": \"noble\", \"ssh_user\": \"ubuntu\"}" >> $GITHUB_OUTPUT
72+
fi
5873
multinode:
5974
name: Multinode
75+
needs:
76+
- generate-vector
6077
uses: stackhpc/stackhpc-openstack-gh-workflows/.github/workflows/[email protected]
6178
with:
6279
multinode_name: ${{ inputs.multinode_name }}
63-
os_distribution: ${{ inputs.os_distribution }}
64-
os_release: ${{ inputs.os_distribution == 'rocky' && '9' || 'jammy' }}
65-
ssh_username: ${{ inputs.os_distribution == 'rocky' && 'cloud-user' || 'ubuntu' }}
80+
os_distribution: ${{ fromJson(needs.generate-vector.outputs.vector).distro }}
81+
os_release: ${{ fromJson(needs.generate-vector.outputs.vector).release }}
82+
ssh_username: ${{ fromJson(needs.generate-vector.outputs.vector).ssh_user }}
6683
neutron_plugin: ${{ inputs.neutron_plugin }}
6784
upgrade: ${{ inputs.upgrade }}
6885
break_on: ${{ inputs.break_on }}

0 commit comments

Comments
 (0)