@@ -40,64 +40,10 @@ jobs:
40
40
bash cicd-deployment-scripts/pi/diff.sh \
41
41
-p "${{ github.event.pull_request.number }}"
42
42
43
- pi-compile :
44
- name : ' Parent Images: Compile Requirements'
45
- runs-on : ubuntu-latest
46
- needs : [pi-diff]
47
- environment : dev
48
- env :
49
- PYTHON_VERSION : ${{ vars.PYTHON_VERSION }}
50
- strategy :
51
- matrix :
52
- parent_image_type : ${{ fromJson(needs.pi-diff.outputs.updated_parent_types) }}
53
- steps :
54
- - name : Checkout repository
55
- uses : actions/checkout@v4
56
- with :
57
- repository : ' ${{ github.repository_owner }}/refinery-${{ matrix.parent_image_type }}-parent-image'
58
- submodules : ' true'
59
- fetch-depth : 0
60
-
61
- - name : GitHub Configuration
62
- run : |
63
- git config --global url."https://oauth2:${{ secrets.GH_TOKEN }}@github.com".insteadOf https://github.com
64
- git config --global user.email "devtools@kern.ai"
65
- git config --global user.name "GitHub Actions"
66
-
67
- - name : Set up Python
68
- uses : actions/setup-python@v5
69
- with :
70
- python-version : ${{ env.PYTHON_VERSION }}
71
-
72
- - name : Install Dependencies
73
- run : python -m pip install pip-tools
74
-
75
- - name : Compile Artifacts
76
- run : |
77
- cd ${{ github.workspace }}/submodules/parent-images
78
- git checkout ${{ github.event.pull_request.head.ref }}
79
- pip-compile requirements/${{ matrix.parent_image_type }}-requirements.in
80
-
81
- cd ${{ github.workspace }}
82
- git checkout ${{ github.event.pull_request.head.ref }} || git checkout -b ${{ github.event.pull_request.head.ref }}
83
- git push origin ${{ github.event.pull_request.head.ref }} && git pull origin ${{ github.event.pull_request.head.ref }}
84
-
85
- git add submodules
86
- git commit -m "ci: update submodules to origin/${{ github.event.pull_request.head.ref }}" || true
87
- git push origin ${{ github.event.pull_request.head.ref }}
88
-
89
- gh pr create \
90
- --title "${{ github.event.pull_request.title }}" \
91
- --body "${{ github.event.pull_request.body }}" \
92
- --base dev \
93
- --head ${{ github.event.pull_request.head.ref }} \
94
- --repo ${{ github.repository_owner }}/refinery-${{ matrix.parent_image_type }}-parent-image
95
-
96
-
97
43
pi-build :
98
44
name : ' Parent Images: Docker Build'
99
45
runs-on : ubuntu-latest
100
- needs : [pi-diff, pi-compile ]
46
+ needs : [pi-diff]
101
47
environment : dev
102
48
env :
103
49
PYTHON_VERSION : ${{ vars.PYTHON_VERSION }}
0 commit comments