Skip to content

Commit 9d4e5f0

Browse files
committed
test: checkout submodules
1 parent fdcdece commit 9d4e5f0

File tree

1 file changed

+55
-44
lines changed

1 file changed

+55
-44
lines changed

.github/workflows/pi_build.yml

Lines changed: 55 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -48,46 +48,46 @@ jobs:
4848
bash cicd-deployment-scripts/pi/compile.sh \
4949
-p "${{ github.event.pull_request.number }}"
5050
51-
pi-upload-artifacts:
52-
name: 'Parent Images: Upload Artifacts'
53-
runs-on: ubuntu-latest
54-
needs: pi-compile
55-
environment: dev
56-
env:
57-
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
58-
strategy:
59-
matrix:
60-
parent_image_type: ${{ fromJson(needs.pi-compile.outputs.updated_parent_types) }}
61-
steps:
62-
- name: Checkout repository
63-
uses: actions/checkout@v4
64-
with:
65-
repository: ${{ github.repository_owner }}/refinery-submodule-parent-images
66-
ref: ${{ github.event.pull_request.head.ref }}
51+
# pi-upload-artifacts:
52+
# name: 'Parent Images: Upload Artifacts'
53+
# runs-on: ubuntu-latest
54+
# needs: pi-compile
55+
# environment: dev
56+
# env:
57+
# PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
58+
# strategy:
59+
# matrix:
60+
# parent_image_type: ${{ fromJson(needs.pi-compile.outputs.updated_parent_types) }}
61+
# steps:
62+
# - name: Checkout repository
63+
# uses: actions/checkout@v4
64+
# with:
65+
# repository: ${{ github.repository_owner }}/refinery-submodule-parent-images
66+
# ref: ${{ github.event.pull_request.head.ref }}
6767

68-
- name: Set up Python
69-
uses: actions/setup-python@v5
70-
with:
71-
python-version: ${{ env.PYTHON_VERSION }}
68+
# - name: Set up Python
69+
# uses: actions/setup-python@v5
70+
# with:
71+
# python-version: ${{ env.PYTHON_VERSION }}
7272

73-
- name: Install dependencies
74-
run: python -m pip install pip-tools
73+
# - name: Install dependencies
74+
# run: python -m pip install pip-tools
7575

76-
- name: Compile Artifacts
77-
run: pip-compile requirements/${{ matrix.parent_image_type }}-requirements.in
76+
# - name: Compile Artifacts
77+
# run: pip-compile requirements/${{ matrix.parent_image_type }}-requirements.in
7878

79-
# Save plan to artifacts
80-
- name: Upload ${{ matrix.parent_image_type }}-requirements
81-
uses: actions/upload-artifact@v4
82-
with:
83-
name: ${{ matrix.parent_image_type }}-requirements.txt
84-
path: requirements/${{ matrix.parent_image_type }}-requirements.txt
85-
if-no-files-found: error
79+
# # Save plan to artifacts
80+
# - name: Upload ${{ matrix.parent_image_type }}-requirements
81+
# uses: actions/upload-artifact@v4
82+
# with:
83+
# name: ${{ matrix.parent_image_type }}-requirements.txt
84+
# path: requirements/${{ matrix.parent_image_type }}-requirements.txt
85+
# if-no-files-found: error
8686

8787
pi-build:
8888
name: 'Parent Images: Docker Build'
8989
runs-on: ubuntu-latest
90-
needs: [pi-compile, pi-upload-artifacts]
90+
needs: [pi-compile]
9191
environment: dev
9292
env:
9393
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
@@ -104,22 +104,33 @@ jobs:
104104
with:
105105
repository: '${{ github.repository_owner }}/refinery-${{ matrix.parent_image_type }}-parent-image'
106106
submodules: 'true'
107+
108+
- name: Set up Python
109+
uses: actions/setup-python@v5
110+
with:
111+
python-version: ${{ env.PYTHON_VERSION }}
112+
113+
- name: Install dependencies
114+
run: python -m pip install pip-tools
107115

108-
# - name: Purge stale requirements
109-
# run: rm ${{ github.workspace }}/submodules/parent-images/requirements/${{ matrix.parent_image_type }}-requirements.txt
116+
- name: Compile Artifacts
117+
run: |
118+
cd submodules/parent-images
119+
git fetch origin && git checkout ${{ github.event.pull_request.head.ref }}
120+
pip-compile submodules/parent-images/requirements/${{ matrix.parent_image_type }}-requirements.in
110121
111-
# Download requirements from artifacts
112-
- name: Download ${{ matrix.parent_image_type }}-requirements
113-
uses: actions/download-artifact@v4
114-
with:
115-
name: ${{ matrix.parent_image_type }}-requirements.txt
116-
path: ${{ github.workspace }}/submodules/parent-images/requirements
122+
# # Download requirements from artifacts
123+
# - name: Download ${{ matrix.parent_image_type }}-requirements
124+
# uses: actions/download-artifact@v4
125+
# with:
126+
# name: ${{ matrix.parent_image_type }}-requirements.txt
127+
# path: ${{ github.workspace }}/submodules/parent-images/requirements
117128

118-
- name: GitHub Configuration
119-
run: git config --global url."https://oauth2:${{ secrets.GH_TOKEN }}@github.com".insteadOf https://github.com
129+
# - name: GitHub Configuration
130+
# run: git config --global url."https://oauth2:${{ secrets.GH_TOKEN }}@github.com".insteadOf https://github.com
120131

121-
- name: Clone cicd-deployment-scripts
122-
run: git clone --branch parent-images https://github.com/code-kern-ai/cicd-deployment-scripts.git
132+
# - name: Clone cicd-deployment-scripts
133+
# run: git clone --branch parent-images https://github.com/code-kern-ai/cicd-deployment-scripts.git
123134

124135
- name: Update submodules
125136
run: |

0 commit comments

Comments
 (0)