|
49 | 49 | permissions: |
50 | 50 | contents: write |
51 | 51 |
|
| 52 | + env: |
| 53 | + IMAGE_ORG_BASE: quay.io/${{ github.event.inputs.quay-organization }} |
| 54 | + |
52 | 55 | steps: |
53 | 56 | - uses: actions/checkout@v3 |
54 | 57 |
|
|
73 | 76 | - name: Install operator-sdk |
74 | 77 | run: make install-operator-sdk |
75 | 78 |
|
| 79 | + - name: Adjust Compatibility Matrix in readme |
| 80 | + run: | |
| 81 | + sed -i -E "s/(.*CodeFlare Operator.*)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.version }}\2/" README.md |
| 82 | + sed -i -E "s/(.*Multi-Cluster App Dispatcher.*)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.mcad-version }}\2/" README.md |
| 83 | + sed -i -E "s/(.*CodeFlare-SDK.*)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.codeflare-sdk-version }}\2/" README.md |
| 84 | + sed -i -E "s/(.*InstaScale.*)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.instascale-version }}\2/" README.md |
| 85 | +
|
| 86 | + - name: Adjust MCAD and InstaScale dependencies in the code |
| 87 | + run: | |
| 88 | + sed -i -E "s/(.*MCAD_VERSION \?= )v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.mcad-version }}\2/" Makefile |
| 89 | + sed -i -E "s/(.*INSTASCALE_VERSION \?= )v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.instascale-version }}\2/" Makefile |
| 90 | + sed -i -E "s/(.*instascale-controller:)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.instascale-version }}\2/" controllers/testdata/instascale_test_results/case_1/deployment.yaml |
| 91 | + sed -i -E "s/(.*instascale-controller:)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.instascale-version }}\2/" controllers/testdata/instascale_test_results/case_2/deployment.yaml |
| 92 | +
|
76 | 93 | - name: Login to Quay.io |
77 | 94 | uses: redhat-actions/podman-login@v1 |
78 | 95 | with: |
@@ -103,29 +120,14 @@ jobs: |
103 | 120 | INSTASCALE_VERSION: ${{ github.event.inputs.instascale-version }} |
104 | 121 | MCAD_VERSION: ${{ github.event.inputs.mcad-version }} |
105 | 122 | GH_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }} |
106 | | - IMAGE_ORG_BASE: quay.io/${{ github.event.inputs.quay-organization }} |
107 | 123 | OPERATORS_REPO_FORK_ORG: ${{ github.event.inputs.community-operators-prod-fork-organization }} |
108 | 124 | OPERATORS_REPO_ORG: ${{ github.event.inputs.community-operators-prod-organization }} |
109 | 125 |
|
110 | | - - name: Adjust Compatibility Matrix in readme |
111 | | - run: | |
112 | | - sed -i -E "s/(.*CodeFlare Operator.*)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.version }}\2/" README.md |
113 | | - sed -i -E "s/(.*Multi-Cluster App Dispatcher.*)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.mcad-version }}\2/" README.md |
114 | | - sed -i -E "s/(.*CodeFlare-SDK.*)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.codeflare-sdk-version }}\2/" README.md |
115 | | - sed -i -E "s/(.*InstaScale.*)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.instascale-version }}\2/" README.md |
116 | | -
|
117 | | - - name: Adjust MCAD and InstaScale dependencies in the code |
118 | | - run: | |
119 | | - sed -i -E "s/(.*MCAD_VERSION \?= )v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.mcad-version }}\2/" Makefile |
120 | | - sed -i -E "s/(.*INSTASCALE_VERSION \?= )v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.instascale-version }}\2/" Makefile |
121 | | - sed -i -E "s/(.*instascale-controller:)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.instascale-version }}\2/" controllers/testdata/instascale_test_results/case_1/deployment.yaml |
122 | | - sed -i -E "s/(.*instascale-controller:)v[0-9]+\.[0-9]+\.[0-9]+(.*)/\1${{ github.event.inputs.instascale-version }}\2/" controllers/testdata/instascale_test_results/case_2/deployment.yaml |
123 | | -
|
124 | | - - name: Commit readme changes back to repository |
| 126 | + - name: Commit changes in the code back to repository |
125 | 127 | uses: stefanzweifel/git-auto-commit-action@v4 |
126 | 128 | with: |
127 | 129 | commit_message: Update dependency versions for release ${{ github.event.inputs.version }} |
128 | | - file_pattern: 'README.md controllers/defaults.go *.yaml Makefile' |
| 130 | + file_pattern: 'README.md controllers/defaults.go *.yaml Makefile go.mod go.sum' |
129 | 131 |
|
130 | 132 | - name: Creates a release in GitHub |
131 | 133 | run: | |
|
0 commit comments