6363 python-version : ${{ env.PYTHON_VERSION }}
6464
6565 - name : Install Dependencies
66+ if : matrix.parent_image_type != 'next'
6667 run : python -m pip install pip-tools
6768
6869 - name : Compile Requirements
@@ -132,21 +133,29 @@ jobs:
132133 matrix :
133134 include : ${{ fromJson(needs.pi-matrix.outputs.include) }}
134135 steps :
135- - name : Checkout Repository
136+ - name : Checkout repository
136137 uses : actions/checkout@v4
137138 with :
139+ token : ${{ secrets.GH_TOKEN }}
140+ repository : ' ${{ github.repository_owner }}/refinery-${{ matrix.parent_image_type }}-parent-image'
141+ fetch-depth : 0
138142 submodules : ' true'
139-
143+
140144 - name : Set up Python
141- if : matrix.parent_image_type != 'next'
142145 uses : actions/setup-python@v5
143146 with :
144147 python-version : ${{ env.PYTHON_VERSION }}
145-
148+
146149 - name : Install Dependencies
147150 if : matrix.parent_image_type != 'next'
148151 run : python -m pip install pip-tools
149152
153+ - name : Compile Requirements
154+ run : |
155+ cd ${{ github.workspace }}/submodules/parent-images
156+ git checkout ${{ env.HEAD_REF }}
157+ pip-compile requirements/${{ matrix.parent_image_type }}-requirements.in
158+
150159 - name : Clone cicd-deployment-scripts
151160 run : git clone https://oauth2:${{ secrets.GH_TOKEN }}@github.com/code-kern-ai/cicd-deployment-scripts.git
152161
@@ -163,12 +172,11 @@ jobs:
163172 - name : Compile Requirements (Python)
164173 if : matrix.parent_image_type != 'next'
165174 run : |
166- cd ${{ github.workspace }}/${{ matrix.app }}/ submodules/parent-images
175+ cd ${{ github.workspace }}/submodules/parent-images
167176 git checkout ${{ env.HEAD_REF }}
168- cd ${{ github.workspace }}/${{ matrix.app }}
169177 pip-compile --quiet \
170- --output-file requirements/${{ matrix.parent_image_type }}-requirements.txt \
171- submodules/parent-images/ requirements/${{ matrix.parent_image_type }}-requirements.in
178+ --output-file ${{ github.workspace }}/${{ matrix.app }}/ requirements/${{ matrix.parent_image_type }}-requirements.txt \
179+ requirements/${{ matrix.parent_image_type }}-requirements.in
172180
173181 - name : Compile Requirements (Next)
174182 if : matrix.parent_image_type == 'next'
0 commit comments