@@ -48,46 +48,46 @@ jobs:
48
48
bash cicd-deployment-scripts/pi/compile.sh \
49
49
-p "${{ github.event.pull_request.number }}"
50
50
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 }}
67
67
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 }}
72
72
73
- - name : Install dependencies
74
- run : python -m pip install pip-tools
73
+ # - name: Install dependencies
74
+ # run: python -m pip install pip-tools
75
75
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
78
78
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
86
86
87
87
pi-build :
88
88
name : ' Parent Images: Docker Build'
89
89
runs-on : ubuntu-latest
90
- needs : [pi-compile, pi-upload-artifacts ]
90
+ needs : [pi-compile]
91
91
environment : dev
92
92
env :
93
93
PYTHON_VERSION : ${{ vars.PYTHON_VERSION }}
@@ -104,22 +104,33 @@ jobs:
104
104
with :
105
105
repository : ' ${{ github.repository_owner }}/refinery-${{ matrix.parent_image_type }}-parent-image'
106
106
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
107
115
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
110
121
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
117
128
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
120
131
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
123
134
124
135
- name : Update submodules
125
136
run : |
0 commit comments