@@ -51,12 +51,14 @@ jobs:
51
51
echo "MCAD Version: ${{ github.event.inputs.mcad-version }}"
52
52
echo "CodeFlare SDK Version: ${{ github.event.inputs.codeflare-sdk-version }}"
53
53
echo "InstaScale Version: ${{ github.event.inputs.instascale-version }}"
54
+ echo "Tested KubeRay Version: ${{ github.event.inputs.kuberay-version }}"
54
55
echo "Is Stable: ${{ github.event.inputs.is-stable }}"
55
56
echo "CodeFlare Repository Organization: ${{ github.event.inputs.codeflare-repository-organization }}"
56
57
echo "Quay Organization: ${{ github.event.inputs.quay-organization }}"
57
58
echo "Community Operators Prod Organization: ${{ github.event.inputs.community-operators-prod-organization }}"
58
59
59
60
release-mcad :
61
+ needs : check-kuberay-version
60
62
runs-on : ubuntu-latest
61
63
62
64
steps :
88
90
if : ${{ env.MCAD_RELEASE_STATUS_CODE != '200' }}
89
91
90
92
release-instascale :
91
- needs : release-mcad
93
+ needs : [check-kuberay-version, release-mcad]
92
94
runs-on : ubuntu-latest
93
95
94
96
steps :
@@ -120,6 +122,7 @@ jobs:
120
122
if : ${{ env.INSTASCALE_RELEASE_STATUS_CODE != '200' }}
121
123
122
124
release-codeflare-sdk :
125
+ needs : check-kuberay-version
123
126
runs-on : ubuntu-latest
124
127
125
128
steps :
@@ -166,7 +169,7 @@ jobs:
166
169
if : ${{ env.SDK_RELEASE_STATUS_CODE == '200' }}
167
170
168
171
release-codeflare-operator :
169
- needs : [release-mcad, release-instascale, release-codeflare-sdk]
172
+ needs : [check-kuberay-version, release-mcad, release-instascale, release-codeflare-sdk]
170
173
runs-on : ubuntu-latest
171
174
172
175
steps :
@@ -186,3 +189,17 @@ jobs:
186
189
env :
187
190
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
188
191
shell : bash
192
+
193
+ check-kuberay-version :
194
+ runs-on : ubuntu-latest
195
+
196
+ steps :
197
+ - name : Check if KubeRay release exists
198
+ run : |
199
+ status_code=$(curl -s -o /dev/null -w "%{http_code}" https://github.com/ray-project/kuberay/releases/tag/${{ github.event.inputs.kuberay-version }})
200
+ if [[ "$status_code" == "200" ]]; then
201
+ echo "KubeRay release with version ${{ github.event.inputs.mcad-version }} exists and available to use."
202
+ else
203
+ echo "KubeRay release with version ${{ github.event.inputs.kuberay-version }} does not exist. Please select an existing version."
204
+ exit 1
205
+ fi
0 commit comments