|
13 | 13 | GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
14 | 14 |
|
15 | 15 | jobs:
|
16 |
| - pi-matrix: |
17 |
| - uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@dev |
18 |
| - secrets: inherit |
19 |
| - with: |
20 |
| - checkout_ref: ${{ github.event.pull_request.base.ref }} |
21 |
| - repository: "${{ github.repository_owner }}/refinery-submodule-parent-images" |
22 |
| - parent_image_type: ${{ vars.PARENT_IMAGE_TYPE }} |
| 16 | + # pi-matrix: |
| 17 | + # uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@dev |
| 18 | + # secrets: inherit |
| 19 | + # with: |
| 20 | + # checkout_ref: ${{ github.event.pull_request.base.ref }} |
| 21 | + # repository: "${{ github.repository_owner }}/refinery-submodule-parent-images" |
| 22 | + # parent_image_type: ${{ vars.PARENT_IMAGE_TYPE }} |
23 | 23 |
|
24 | 24 | pi-build:
|
25 | 25 | name: 'Parent Images: Docker Build'
|
@@ -47,10 +47,10 @@ jobs:
|
47 | 47 | - name: Install Dependencies
|
48 | 48 | run: python -m pip install pip-tools
|
49 | 49 |
|
50 |
| - - name: Compile Requirements |
51 |
| - run: | |
52 |
| - cd ${{ github.workspace }}/submodules/parent-images |
53 |
| - pip-compile requirements/${{ env.PARENT_IMAGE_TYPE }}-requirements.in |
| 50 | + # - name: Compile Requirements |
| 51 | + # run: | |
| 52 | + # cd ${{ github.workspace }}/submodules/parent-images |
| 53 | + # pip-compile requirements/${{ env.PARENT_IMAGE_TYPE }}-requirements.in |
54 | 54 |
|
55 | 55 | - name: Set up Docker Buildx
|
56 | 56 | uses: docker/setup-buildx-action@v3
|
@@ -127,108 +127,108 @@ jobs:
|
127 | 127 | # platform=linux/arm64
|
128 | 128 | # label=dockerfile-path=https://github.com/refinery-${{ env.PARENT_IMAGE_TYPE }}-parent-image/blob/${{ github.sha }}/Dockerfile
|
129 | 129 |
|
130 |
| - pi-update-app: |
131 |
| - name: 'Parent Images: App' |
132 |
| - runs-on: ubuntu-latest |
133 |
| - needs: [pi-matrix, pi-build] |
134 |
| - environment: dev |
135 |
| - continue-on-error: true |
136 |
| - env: |
137 |
| - PYTHON_VERSION: ${{ vars.PYTHON_VERSION }} |
138 |
| - HEAD_REF: parent-image-updates |
139 |
| - strategy: |
140 |
| - matrix: |
141 |
| - include: ${{ fromJson(needs.pi-matrix.outputs.include) }} |
142 |
| - steps: |
143 |
| - - name: Checkout Repository |
144 |
| - uses: actions/checkout@v4 |
145 |
| - with: |
146 |
| - submodules: 'true' |
| 130 | + # pi-update-app: |
| 131 | + # name: 'Parent Images: App' |
| 132 | + # runs-on: ubuntu-latest |
| 133 | + # needs: [pi-matrix, pi-build] |
| 134 | + # environment: dev |
| 135 | + # continue-on-error: true |
| 136 | + # env: |
| 137 | + # PYTHON_VERSION: ${{ vars.PYTHON_VERSION }} |
| 138 | + # HEAD_REF: parent-image-updates |
| 139 | + # strategy: |
| 140 | + # matrix: |
| 141 | + # include: ${{ fromJson(needs.pi-matrix.outputs.include) }} |
| 142 | + # steps: |
| 143 | + # - name: Checkout Repository |
| 144 | + # uses: actions/checkout@v4 |
| 145 | + # with: |
| 146 | + # submodules: 'true' |
147 | 147 |
|
148 |
| - - name: Set up Python |
149 |
| - if: matrix.parent_image_type != 'next' |
150 |
| - uses: actions/setup-python@v5 |
151 |
| - with: |
152 |
| - python-version: ${{ env.PYTHON_VERSION }} |
| 148 | + # - name: Set up Python |
| 149 | + # if: matrix.parent_image_type != 'next' |
| 150 | + # uses: actions/setup-python@v5 |
| 151 | + # with: |
| 152 | + # python-version: ${{ env.PYTHON_VERSION }} |
153 | 153 |
|
154 |
| - - name: Install Dependencies |
155 |
| - if: matrix.parent_image_type != 'next' |
156 |
| - run: python -m pip install pip-tools |
| 154 | + # - name: Install Dependencies |
| 155 | + # if: matrix.parent_image_type != 'next' |
| 156 | + # run: python -m pip install pip-tools |
157 | 157 |
|
158 |
| - - name: Clone ${{ matrix.app }} |
159 |
| - run: | |
160 |
| - git clone --recurse-submodules https://oauth2:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository_owner }}/${{ matrix.app }}.git |
161 |
| - cd ${{ github.workspace }}/${{ matrix.app }} |
162 |
| -
|
163 |
| - git config user.email "devtools@kern.ai" |
164 |
| - git config user.name "GitHub Actions" |
165 |
| -
|
166 |
| - git checkout -b ${{ env.HEAD_REF }} || git checkout ${{ env.HEAD_REF }} |
167 |
| -
|
168 |
| - - name: Compile Requirements (Python) |
169 |
| - if: matrix.parent_image_type != 'next' |
170 |
| - run: | |
171 |
| - pip-compile --quiet \ |
172 |
| - --output-file ${{ matrix.app }}/requirements/${{ matrix.parent_image_type }}-requirements.txt \ |
173 |
| - submodules/parent-images/requirements/${{ matrix.parent_image_type }}-requirements.in |
| 158 | + # - name: Clone ${{ matrix.app }} |
| 159 | + # run: | |
| 160 | + # git clone --recurse-submodules https://oauth2:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository_owner }}/${{ matrix.app }}.git |
| 161 | + # cd ${{ github.workspace }}/${{ matrix.app }} |
| 162 | + |
| 163 | + # git config user.email "devtools@kern.ai" |
| 164 | + # git config user.name "GitHub Actions" |
| 165 | + |
| 166 | + # git checkout -b ${{ env.HEAD_REF }} || git checkout ${{ env.HEAD_REF }} |
| 167 | + |
| 168 | + # - name: Compile Requirements (Python) |
| 169 | + # if: matrix.parent_image_type != 'next' |
| 170 | + # run: | |
| 171 | + # pip-compile --quiet \ |
| 172 | + # --output-file ${{ matrix.app }}/requirements/${{ matrix.parent_image_type }}-requirements.txt \ |
| 173 | + # submodules/parent-images/requirements/${{ matrix.parent_image_type }}-requirements.in |
174 | 174 |
|
175 |
| - - name: Compile Requirements (Next) |
176 |
| - if: matrix.parent_image_type == 'next' |
177 |
| - run: | |
178 |
| - jq --slurp '.[0] * .[1]' \ |
179 |
| - package.json \ |
180 |
| - ${{ matrix.app }}/package.json \ |
181 |
| - > package.json.tmp |
182 |
| - mv package.json.tmp ${{ matrix.app }}/package.json |
183 |
| -
|
184 |
| - - name: Perform Edit/Git Operations (Python) |
185 |
| - if: matrix.parent_image_type != 'next' |
186 |
| - run: | |
187 |
| - cd ${{ github.workspace }}/${{ matrix.app }} |
188 |
| -
|
189 |
| - git add requirements/${{ matrix.parent_image_type }}-requirements.txt |
190 |
| - git commit -m "ci: update ${{ matrix.parent_image_type }}-requirements.txt" || true |
191 |
| - git push origin ${{ env.HEAD_REF }} |
192 |
| - echo "::notice::${{ matrix.app }} - updated ${{ matrix.parent_image_type }}-requirements.txt" |
193 |
| -
|
194 |
| - export exitcode=0 |
195 |
| - pip-compile --quiet \ |
196 |
| - --output-file requirements.txt \ |
197 |
| - requirements/requirements.in || export exitcode=$? |
| 175 | + # - name: Compile Requirements (Next) |
| 176 | + # if: matrix.parent_image_type == 'next' |
| 177 | + # run: | |
| 178 | + # jq --slurp '.[0] * .[1]' \ |
| 179 | + # package.json \ |
| 180 | + # ${{ matrix.app }}/package.json \ |
| 181 | + # > package.json.tmp |
| 182 | + # mv package.json.tmp ${{ matrix.app }}/package.json |
| 183 | + |
| 184 | + # - name: Perform Edit/Git Operations (Python) |
| 185 | + # if: matrix.parent_image_type != 'next' |
| 186 | + # run: | |
| 187 | + # cd ${{ github.workspace }}/${{ matrix.app }} |
| 188 | + |
| 189 | + # git add requirements/${{ matrix.parent_image_type }}-requirements.txt |
| 190 | + # git commit -m "ci: update ${{ matrix.parent_image_type }}-requirements.txt" || true |
| 191 | + # git push origin ${{ env.HEAD_REF }} |
| 192 | + # echo "::notice::${{ matrix.app }} - updated ${{ matrix.parent_image_type }}-requirements.txt" |
| 193 | + |
| 194 | + # export exitcode=0 |
| 195 | + # pip-compile --quiet \ |
| 196 | + # --output-file requirements.txt \ |
| 197 | + # requirements/requirements.in || export exitcode=$? |
198 | 198 |
|
199 |
| - if [ $exitcode -ne 0 ]; then |
200 |
| - echo "::error::pip-compile failed with exit code $exitcode" |
201 |
| - exit $exitcode |
202 |
| - else |
203 |
| - git add requirements.txt |
204 |
| - git commit -m "ci: update requirements.txt" || true |
205 |
| - git push origin ${{ env.HEAD_REF }} |
206 |
| - echo "::notice::${{ matrix.app }} - updated requirements.txt" |
207 |
| - fi |
208 |
| -
|
209 |
| - gh pr create --draft \ |
210 |
| - --title "${{ github.event.pull_request.title }}" \ |
211 |
| - --body "${{ github.event.pull_request.body }}" \ |
212 |
| - --base dev \ |
213 |
| - --head ${{ env.HEAD_REF }} \ |
214 |
| - --repo ${{ github.repository_owner }}/${{ matrix.app }} || true |
| 199 | + # if [ $exitcode -ne 0 ]; then |
| 200 | + # echo "::error::pip-compile failed with exit code $exitcode" |
| 201 | + # exit $exitcode |
| 202 | + # else |
| 203 | + # git add requirements.txt |
| 204 | + # git commit -m "ci: update requirements.txt" || true |
| 205 | + # git push origin ${{ env.HEAD_REF }} |
| 206 | + # echo "::notice::${{ matrix.app }} - updated requirements.txt" |
| 207 | + # fi |
| 208 | + |
| 209 | + # gh pr create --draft \ |
| 210 | + # --title "${{ github.event.pull_request.title }}" \ |
| 211 | + # --body "${{ github.event.pull_request.body }}" \ |
| 212 | + # --base dev \ |
| 213 | + # --head ${{ env.HEAD_REF }} \ |
| 214 | + # --repo ${{ github.repository_owner }}/${{ matrix.app }} || true |
215 | 215 |
|
216 |
| - - name: Perform Edit/Git Operations (Next) |
217 |
| - if: matrix.parent_image_type == 'next' |
218 |
| - run: | |
219 |
| - cd ${{ github.workspace }}/${{ matrix.app }} |
220 |
| -
|
221 |
| - git add package.json |
222 |
| - git commit -m "ci: update ${{ matrix.parent_image_type }} package.json" || true |
223 |
| - git push origin ${{ env.HEAD_REF }} |
224 |
| - echo "::notice::${{ matrix.app }} - updated ${{ matrix.parent_image_type }} package.json" |
225 |
| -
|
226 |
| - gh pr create --draft \ |
227 |
| - --title "${{ github.event.pull_request.title }}" \ |
228 |
| - --body "${{ github.event.pull_request.body }}" \ |
229 |
| - --base dev \ |
230 |
| - --head ${{ env.HEAD_REF }} \ |
231 |
| - --repo ${{ github.repository_owner }}/${{ matrix.app }} || true |
| 216 | + # - name: Perform Edit/Git Operations (Next) |
| 217 | + # if: matrix.parent_image_type == 'next' |
| 218 | + # run: | |
| 219 | + # cd ${{ github.workspace }}/${{ matrix.app }} |
| 220 | + |
| 221 | + # git add package.json |
| 222 | + # git commit -m "ci: update ${{ matrix.parent_image_type }} package.json" || true |
| 223 | + # git push origin ${{ env.HEAD_REF }} |
| 224 | + # echo "::notice::${{ matrix.app }} - updated ${{ matrix.parent_image_type }} package.json" |
| 225 | + |
| 226 | + # gh pr create --draft \ |
| 227 | + # --title "${{ github.event.pull_request.title }}" \ |
| 228 | + # --body "${{ github.event.pull_request.body }}" \ |
| 229 | + # --base dev \ |
| 230 | + # --head ${{ env.HEAD_REF }} \ |
| 231 | + # --repo ${{ github.repository_owner }}/${{ matrix.app }} || true |
232 | 232 |
|
233 | 233 | gh-delete-branch:
|
234 | 234 | name: 'GitHub: Delete Branch'
|
|
0 commit comments