Skip to content

Commit bc64d92

Browse files
committed
test: git push
1 parent 765a3aa commit bc64d92

File tree

1 file changed

+1
-55
lines changed

1 file changed

+1
-55
lines changed

.github/workflows/pi_build.yml

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -40,64 +40,10 @@ jobs:
4040
bash cicd-deployment-scripts/pi/diff.sh \
4141
-p "${{ github.event.pull_request.number }}"
4242
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-
9743
pi-build:
9844
name: 'Parent Images: Docker Build'
9945
runs-on: ubuntu-latest
100-
needs: [pi-diff, pi-compile]
46+
needs: [pi-diff]
10147
environment: dev
10248
env:
10349
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}

0 commit comments

Comments
 (0)