Skip to content

Commit 4d357ff

Browse files
committed
Add matrix to enable ubuntu noble run
1 parent a3069e4 commit 4d357ff

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

.github/workflows/stackhpc-multinode.yml

+29-3
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,40 @@ 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
73+
debug:
74+
runs-on: ubuntu-latest
75+
needs:
76+
- generate-vector
77+
steps:
78+
- name: Print vector
79+
id: print-vector
80+
run: |
81+
echo ${{ fromJson(needs.generate-vector.outputs.vector).distro }}
5882
multinode:
5983
name: Multinode
84+
needs:
85+
- generate-vector
6086
uses: stackhpc/stackhpc-openstack-gh-workflows/.github/workflows/[email protected]
6187
with:
6288
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' }}
89+
os_distribution: ${{ fromJson(needs.generate-vector.outputs.vector).distro }}
90+
os_release: ${{ fromJson(needs.generate-vector.outputs.vector).release }}
91+
ssh_username: ${{ fromJson(needs.generate-vector.outputs.vector).ssh_user }}
6692
neutron_plugin: ${{ inputs.neutron_plugin }}
6793
upgrade: ${{ inputs.upgrade }}
6894
break_on: ${{ inputs.break_on }}

0 commit comments

Comments
 (0)