1313 codeflare-sdk-version :
1414 description : ' Version of CodeFlare-SDK to be released (for example: v0.0.0)'
1515 required : true
16+ appwrapper-version :
17+ description : ' Tested version of AppWrapper (for example: v0.0.0)'
18+ required : true
1619 kuberay-version :
1720 description : ' Tested version of KubeRay (for example: v0.0.0)'
1821 required : true
@@ -43,14 +46,15 @@ jobs:
4346 echo "Operator Version: ${{ github.event.inputs.operator-version }}"
4447 echo "Replaces: ${{ github.event.inputs.replaces }}"
4548 echo "CodeFlare SDK Version: ${{ github.event.inputs.codeflare-sdk-version }}"
49+ echo "Tested AppWrapper Version: ${{ github.event.inputs.appwrapper-version }}"
4650 echo "Tested KubeRay Version: ${{ github.event.inputs.kuberay-version }}"
4751 echo "Is Stable: ${{ github.event.inputs.is-stable }}"
4852 echo "CodeFlare Repository Organization: ${{ github.event.inputs.codeflare-repository-organization }}"
4953 echo "Quay Organization: ${{ github.event.inputs.quay-organization }}"
5054 echo "Community Operators Prod Organization: ${{ github.event.inputs.community-operators-prod-organization }}"
5155
5256 release-codeflare-sdk :
53- needs : check-kuberay-version
57+ needs : [ check-appwrapper-version, check- kuberay-version]
5458 runs-on : ubuntu-latest
5559
5660 steps :
9094 steps :
9195 - name : Release CodeFlare operator
9296 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 }}
9498 env :
9599 GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
96100 shell : bash
@@ -105,6 +109,20 @@ jobs:
105109 GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
106110 shell : bash
107111
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+
108126 check-kuberay-version :
109127 runs-on : ubuntu-latest
110128
0 commit comments