13
13
codeflare-sdk-version :
14
14
description : ' Version of CodeFlare-SDK to be released (for example: v0.0.0)'
15
15
required : true
16
+ appwrapper-version :
17
+ description : ' Tested version of AppWrapper (for example: v0.0.0)'
18
+ required : true
16
19
kuberay-version :
17
20
description : ' Tested version of KubeRay (for example: v0.0.0)'
18
21
required : true
@@ -43,14 +46,15 @@ jobs:
43
46
echo "Operator Version: ${{ github.event.inputs.operator-version }}"
44
47
echo "Replaces: ${{ github.event.inputs.replaces }}"
45
48
echo "CodeFlare SDK Version: ${{ github.event.inputs.codeflare-sdk-version }}"
49
+ echo "Tested AppWrapper Version: ${{ github.event.inputs.appwrapper-version }}"
46
50
echo "Tested KubeRay Version: ${{ github.event.inputs.kuberay-version }}"
47
51
echo "Is Stable: ${{ github.event.inputs.is-stable }}"
48
52
echo "CodeFlare Repository Organization: ${{ github.event.inputs.codeflare-repository-organization }}"
49
53
echo "Quay Organization: ${{ github.event.inputs.quay-organization }}"
50
54
echo "Community Operators Prod Organization: ${{ github.event.inputs.community-operators-prod-organization }}"
51
55
52
56
release-codeflare-sdk :
53
- needs : check-kuberay-version
57
+ needs : [ check-appwrapper-version, check- kuberay-version]
54
58
runs-on : ubuntu-latest
55
59
56
60
steps :
90
94
steps :
91
95
- name : Release CodeFlare operator
92
96
run : |
93
- gh workflow run tag-and-build.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-operator --ref ${{ github.ref }} --field is-stable=${{ github.event.inputs.is-stable }} --field version=${{ github.event.inputs.operator-version }} --field replaces=${{ github.event.inputs.replaces }} --field codeflare-sdk-version=${{ github.event.inputs.codeflare-sdk-version }} --field kuberay-version=${{ github.event.inputs.kuberay-version }} --field quay-organization=${{ github.event.inputs.quay-organization }} --field community-operators-prod-fork-organization=${{ github.event.inputs.codeflare-repository-organization }} --field community-operators-prod-organization=${{ github.event.inputs.community-operators-prod-organization }}
97
+ gh workflow run tag-and-build.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-operator --ref ${{ github.ref }} --field is-stable=${{ github.event.inputs.is-stable }} --field version=${{ github.event.inputs.operator-version }} --field replaces=${{ github.event.inputs.replaces }} --field codeflare-sdk-version=${{ github.event.inputs.codeflare-sdk-version }} --field appwrapper-version=${{ github.event.inputs.appwrapper-version }} --field kuberay-version=${{ github.event.inputs.kuberay-version }} --field quay-organization=${{ github.event.inputs.quay-organization }} --field community-operators-prod-fork-organization=${{ github.event.inputs.codeflare-repository-organization }} --field community-operators-prod-organization=${{ github.event.inputs.community-operators-prod-organization }}
94
98
env :
95
99
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
96
100
shell : bash
@@ -105,6 +109,20 @@ jobs:
105
109
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
106
110
shell : bash
107
111
112
+ check-appwrapper-version :
113
+ runs-on : ubuntu-latest
114
+
115
+ steps :
116
+ - name : Check if AppWrapper release exists
117
+ run : |
118
+ status_code=$(curl -s -o /dev/null -w "%{http_code}" https://github.com/project-codeflare/appwrapper/releases/tag/${{ github.event.inputs.appwrapper-version }})
119
+ if [[ "$status_code" == "200" ]]; then
120
+ echo "AppWrapper release with version ${{ github.event.inputs.appwrapper-version }} exists and available to use."
121
+ else
122
+ echo "AppWrapper release with version ${{ github.event.inputs.appwrapper-version }} does not exist. Please select an existing version."
123
+ exit 1
124
+ fi
125
+
108
126
check-kuberay-version :
109
127
runs-on : ubuntu-latest
110
128
0 commit comments