Skip to content

Commit be7ac07

Browse files
authored
Removed InstaScale & MCAD from release workflow (#492)
1 parent 465da20 commit be7ac07

File tree

2 files changed

+2
-93
lines changed

2 files changed

+2
-93
lines changed

.github/workflows/project-codeflare-release.yml

+2-74
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,9 @@ on:
1010
replaces:
1111
description: 'The previous operator semantic version that this release replaces (for example: v0.0.0)'
1212
required: true
13-
mcad-version:
14-
description: 'Version of multi-cluster-app-dispatcher to be released (for example: v0.0.0)'
15-
required: true
1613
codeflare-sdk-version:
1714
description: 'Version of CodeFlare-SDK to be released (for example: v0.0.0)'
1815
required: true
19-
instascale-version:
20-
description: 'Version of InstaScale to be released (for example: v0.0.0)'
21-
required: true
2216
kuberay-version:
2317
description: 'Tested version of KubeRay (for example: v0.0.0)'
2418
required: true
@@ -48,79 +42,13 @@ jobs:
4842
echo "Below are the release parameters set for the workflow:"
4943
echo "Operator Version: ${{ github.event.inputs.operator-version }}"
5044
echo "Replaces: ${{ github.event.inputs.replaces }}"
51-
echo "MCAD Version: ${{ github.event.inputs.mcad-version }}"
5245
echo "CodeFlare SDK Version: ${{ github.event.inputs.codeflare-sdk-version }}"
53-
echo "InstaScale Version: ${{ github.event.inputs.instascale-version }}"
5446
echo "Tested KubeRay Version: ${{ github.event.inputs.kuberay-version }}"
5547
echo "Is Stable: ${{ github.event.inputs.is-stable }}"
5648
echo "CodeFlare Repository Organization: ${{ github.event.inputs.codeflare-repository-organization }}"
5749
echo "Quay Organization: ${{ github.event.inputs.quay-organization }}"
5850
echo "Community Operators Prod Organization: ${{ github.event.inputs.community-operators-prod-organization }}"
5951
60-
release-mcad:
61-
needs: check-kuberay-version
62-
runs-on: ubuntu-latest
63-
64-
steps:
65-
- name: Check if MCAD release does exist
66-
run: |
67-
status_code=$(curl -s -o /dev/null -w "%{http_code}" https://github.com/project-codeflare/multi-cluster-app-dispatcher/releases/tag/${{ github.event.inputs.mcad-version }})
68-
if [[ "$status_code" == "200" ]]; then
69-
echo "MCAD release with version ${{ github.event.inputs.mcad-version }} already exist. Will not create MCAD release."
70-
fi
71-
echo "MCAD_RELEASE_STATUS_CODE=$status_code" >> $GITHUB_ENV
72-
73-
- name: Release MCAD
74-
run: |
75-
gh workflow run mcad-release.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/multi-cluster-app-dispatcher --ref go-1.20 --field tag=${{ github.event.inputs.mcad-version }}
76-
env:
77-
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
78-
shell: bash
79-
if: ${{ env.MCAD_RELEASE_STATUS_CODE != '200' }}
80-
81-
- name: Wait for MCAD run to finish
82-
run: |
83-
# wait for a while for Run to be started
84-
sleep 5
85-
run_id=$(gh run list --workflow mcad-release.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/multi-cluster-app-dispatcher --limit 1 --json databaseId --jq .[].databaseId)
86-
gh run watch ${run_id} --repo ${{ github.event.inputs.codeflare-repository-organization }}/multi-cluster-app-dispatcher --interval 10 --exit-status
87-
env:
88-
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
89-
shell: bash
90-
if: ${{ env.MCAD_RELEASE_STATUS_CODE != '200' }}
91-
92-
release-instascale:
93-
needs: release-mcad
94-
runs-on: ubuntu-latest
95-
96-
steps:
97-
- name: Check if Instascale release does exist
98-
run: |
99-
status_code=$(curl -s -o /dev/null -w "%{http_code}" https://github.com/project-codeflare/instascale/releases/tag/${{ github.event.inputs.instascale-version }})
100-
if [[ "$status_code" == "200" ]]; then
101-
echo "Instascale release with version ${{ github.event.inputs.instascale-version }} already exist. Will not create Instascale release."
102-
fi
103-
echo "INSTASCALE_RELEASE_STATUS_CODE=$status_code" >> $GITHUB_ENV
104-
105-
- name: Release InstaScale
106-
run: |
107-
gh workflow run instascale-release.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/instascale --ref ${{ github.ref }} --field tag=${{ github.event.inputs.instascale-version }} --field mcad-version=${{ github.event.inputs.mcad-version }}
108-
env:
109-
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
110-
shell: bash
111-
if: ${{ env.INSTASCALE_RELEASE_STATUS_CODE != '200' }}
112-
113-
- name: Wait for InstaScale run to finish
114-
run: |
115-
# wait for a while for Run to be started
116-
sleep 5
117-
run_id=$(gh run list --workflow instascale-release.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/instascale --limit 1 --json databaseId --jq .[].databaseId)
118-
gh run watch ${run_id} --repo ${{ github.event.inputs.codeflare-repository-organization }}/instascale --interval 10 --exit-status
119-
env:
120-
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
121-
shell: bash
122-
if: ${{ env.INSTASCALE_RELEASE_STATUS_CODE != '200' }}
123-
12452
release-codeflare-sdk:
12553
needs: check-kuberay-version
12654
runs-on: ubuntu-latest
@@ -156,13 +84,13 @@ jobs:
15684
if: ${{ env.SDK_RELEASE_STATUS_CODE != '200' }}
15785

15886
release-codeflare-operator:
159-
needs: [release-mcad, release-instascale, release-codeflare-sdk]
87+
needs: [release-codeflare-sdk]
16088
runs-on: ubuntu-latest
16189

16290
steps:
16391
- name: Release CodeFlare operator
16492
run: |
165-
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 mcad-version=${{ github.event.inputs.mcad-version }} --field codeflare-sdk-version=${{ github.event.inputs.codeflare-sdk-version }} --field instascale-version=${{ github.event.inputs.instascale-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 }}
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 }}
16694
env:
16795
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
16896
shell: bash

.github/workflows/tag-and-build.yml

-19
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,10 @@ on:
1212
description: 'The previous semantic version that this tag replaces.'
1313
required: true
1414
default: 'v0.0.0-dev'
15-
mcad-version:
16-
description: 'Published version of multi-cluster-app-dispatcher'
17-
required: true
18-
default: 'v0.0.0-dev'
1915
codeflare-sdk-version:
2016
description: 'Published version of CodeFlare-SDK'
2117
required: true
2218
default: 'v0.0.0-dev'
23-
instascale-version:
24-
description: 'Published version of InstaScale'
25-
required: true
26-
default: 'v0.0.0-dev'
2719
kuberay-version:
2820
description: 'Tested version of KubeRay'
2921
required: true
@@ -90,18 +82,9 @@ jobs:
9082
- name: Adjust Compatibility Matrix in readme
9183
run: |
9284
sed -i -E "s|(.*CodeFlare Operator.*\[).*(\].*releases/tag/).*(\).*)|\1${{ github.event.inputs.version }}\2${{ github.event.inputs.version }}\3|" README.md
93-
sed -i -E "s|(.*Multi-Cluster App Dispatcher.*\[).*(\].*releases/tag/).*(\).*)|\1${{ github.event.inputs.mcad-version }}\2${{ github.event.inputs.mcad-version }}\3|" README.md
9485
sed -i -E "s|(.*CodeFlare-SDK.*\[).*(\].*releases/tag/).*(\).*)|\1${{ github.event.inputs.codeflare-sdk-version }}\2${{ github.event.inputs.codeflare-sdk-version }}\3|" README.md
95-
sed -i -E "s|(.*InstaScale.*\[).*(\].*releases/tag/).*(\).*)|\1${{ github.event.inputs.instascale-version }}\2${{ github.event.inputs.instascale-version }}\3|" README.md
9686
sed -i -E "s|(.*KubeRay.*\[).*(\].*releases/tag/).*(\).*)|\1${{ github.event.inputs.kuberay-version }}\2${{ github.event.inputs.kuberay-version }}\3|" README.md
9787
98-
- name: Adjust MCAD, SDK and InstaScale dependencies in the code
99-
run: |
100-
sed -i -E "s/(.*MCAD_VERSION \?= ).*/\1${{ github.event.inputs.mcad-version }}/" Makefile
101-
sed -i -E "s/(.*MCAD_REF \?= ).*/\1release-\${MCAD_VERSION}/" Makefile
102-
sed -i -E "s/(.*INSTASCALE_VERSION \?= ).*/\1${{ github.event.inputs.instascale-version }}/" Makefile
103-
sed -i -E "s/(.*KUBERAY_VERSION \?= ).*/\1${{ github.event.inputs.kuberay-version }}/" Makefile
104-
10588
- name: Update image version in params.env
10689
run: |
10790
VERSION=${{ github.event.inputs.version }} perl -i -pe 's/:(.*)$/:$ENV{"VERSION"}/' config/manager/params.env
@@ -192,8 +175,6 @@ jobs:
192175
env:
193176
VERSION: ${{ github.event.inputs.version }}
194177
PREVIOUS_VERSION: ${{ github.event.inputs.replaces }}
195-
INSTASCALE_VERSION: ${{ github.event.inputs.instascale-version }}
196-
MCAD_VERSION: ${{ github.event.inputs.mcad-version }}
197178
GH_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
198179
OPERATORS_REPO_FORK_ORG: ${{ github.event.inputs.community-operators-prod-fork-organization }}
199180
OPERATORS_REPO_ORG: ${{ github.event.inputs.community-operators-prod-organization }}

0 commit comments

Comments
 (0)