File tree 1 file changed +29
-3
lines changed
1 file changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,40 @@ name: Multinode
55
55
type : string
56
56
default : main
57
57
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 }}
58
82
multinode :
59
83
name : Multinode
84
+ needs :
85
+ - generate-vector
60
86
uses :
stackhpc/stackhpc-openstack-gh-workflows/.github/workflows/[email protected]
61
87
with :
62
88
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 }}
66
92
neutron_plugin : ${{ inputs.neutron_plugin }}
67
93
upgrade : ${{ inputs.upgrade }}
68
94
break_on : ${{ inputs.break_on }}
You can’t perform that action at this time.
0 commit comments