63
63
python-version : ${{ env.PYTHON_VERSION }}
64
64
65
65
- name : Install Dependencies
66
+ if : matrix.parent_image_type != 'next'
66
67
run : python -m pip install pip-tools
67
68
68
69
- name : Compile Requirements
@@ -132,21 +133,29 @@ jobs:
132
133
matrix :
133
134
include : ${{ fromJson(needs.pi-matrix.outputs.include) }}
134
135
steps :
135
- - name : Checkout Repository
136
+ - name : Checkout repository
136
137
uses : actions/checkout@v4
137
138
with :
139
+ token : ${{ secrets.GH_TOKEN }}
140
+ repository : ' ${{ github.repository_owner }}/refinery-${{ matrix.parent_image_type }}-parent-image'
141
+ fetch-depth : 0
138
142
submodules : ' true'
139
-
143
+
140
144
- name : Set up Python
141
- if : matrix.parent_image_type != 'next'
142
145
uses : actions/setup-python@v5
143
146
with :
144
147
python-version : ${{ env.PYTHON_VERSION }}
145
-
148
+
146
149
- name : Install Dependencies
147
150
if : matrix.parent_image_type != 'next'
148
151
run : python -m pip install pip-tools
149
152
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
+
150
159
- name : Clone cicd-deployment-scripts
151
160
run : git clone https://oauth2:${{ secrets.GH_TOKEN }}@github.com/code-kern-ai/cicd-deployment-scripts.git
152
161
@@ -163,12 +172,11 @@ jobs:
163
172
- name : Compile Requirements (Python)
164
173
if : matrix.parent_image_type != 'next'
165
174
run : |
166
- cd ${{ github.workspace }}/${{ matrix.app }}/ submodules/parent-images
175
+ cd ${{ github.workspace }}/submodules/parent-images
167
176
git checkout ${{ env.HEAD_REF }}
168
- cd ${{ github.workspace }}/${{ matrix.app }}
169
177
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
172
180
173
181
- name : Compile Requirements (Next)
174
182
if : matrix.parent_image_type == 'next'
0 commit comments