40
40
- name : Set up Python
41
41
uses : actions/setup-python@v5
42
42
with :
43
- python-version : " 3.11 "
43
+ python-version : " 3.12 "
44
44
45
45
# The steps ensure that the cron job is able to run only for
46
46
# for beta releases and not for stable releases
@@ -100,7 +100,7 @@ jobs:
100
100
if : ${{ !endsWith(matrix.runner, '-arm64') }}
101
101
uses : actions/setup-python@v5
102
102
with :
103
- python-version : " 3.11 "
103
+ python-version : " 3.12 "
104
104
105
105
# Currently psutil package requires gcc to be installed on arm
106
106
# for building psutil from source
@@ -118,7 +118,12 @@ jobs:
118
118
if : ${{ endsWith(matrix.runner, '-arm64') }}
119
119
uses :
deadsnakes/[email protected]
120
120
with :
121
- python-version : " 3.11"
121
+ python-version : " 3.12"
122
+
123
+ - name : Install Git
124
+ run : |
125
+ sudo apt-get update
126
+ sudo apt-get install git -y
122
127
123
128
- name : Check python version
124
129
run : |
@@ -128,8 +133,8 @@ jobs:
128
133
129
134
- name : Install dependencies
130
135
run : |
131
- python -m pip install --upgrade pip
132
- pip install --upgrade bump2version tox
136
+ pip install --upgrade pip uv==0.1.18 bump2version tox tox-uv==1.5.1
137
+ uv --version
133
138
134
139
- name : Get Release tag
135
140
id : get_release_tag
@@ -246,7 +251,24 @@ jobs:
246
251
digest="${{ steps.grid-seaweedfs-build.outputs.digest }}"
247
252
touch "/tmp/digests/grid-seaweedfs/${digest#sha256:}"
248
253
249
- - name : Upload digest for grid-backend, grid-frontend and grid-seaweedfs
254
+ - name : Build and push `grid-veilid` image to DockerHub
255
+ id : grid-veilid-build
256
+ uses : docker/build-push-action@v5
257
+ with :
258
+ context : ./packages/grid/veilid
259
+ file : ./packages/grid/veilid/veilid.dockerfile
260
+ platforms : ${{ steps.release_metadata.outputs.release_platform }}
261
+ outputs : type=image,name=openmined/grid-veilid,push-by-digest=true,name-canonical=true,push=true
262
+ cache-from : type=registry,ref=openmined/grid-veilid:cache-${{ steps.release_metadata.outputs.short_release_platform }}
263
+ cache-to : type=registry,ref=openmined/grid-veilid:cache-${{ steps.release_metadata.outputs.short_release_platform}},mode=max
264
+
265
+ - name : Export digest for grid-veilid
266
+ run : |
267
+ mkdir -p /tmp/digests/grid-veilid
268
+ digest="${{ steps.grid-veilid-build.outputs.digest }}"
269
+ touch "/tmp/digests/grid-veilid/${digest#sha256:}"
270
+
271
+ - name : Upload digest for grid-backend, grid-frontend and grid-seaweedfs, grid-veilid
250
272
uses : actions/upload-artifact@v4
251
273
with :
252
274
name : digests-${{ steps.release_metadata.outputs.grid_version }}-${{ steps.release_metadata.outputs.short_release_platform }}
@@ -305,6 +327,14 @@ jobs:
305
327
-t openmined/grid-seaweedfs:${{ needs.build-and-push-docker-images.outputs.release_tag }} \
306
328
$(printf 'openmined/grid-seaweedfs@sha256:%s ' *)
307
329
330
+ - name : Create manifest list and push for grid-veilid
331
+ working-directory : /tmp/digests/grid-veilid
332
+ run : |
333
+ docker buildx imagetools create \
334
+ -t openmined/grid-veilid:${{ needs.build-and-push-docker-images.outputs.grid_version }} \
335
+ -t openmined/grid-veilid:${{ needs.build-and-push-docker-images.outputs.release_tag }} \
336
+ $(printf 'openmined/grid-veilid@sha256:%s ' *)
337
+
308
338
deploy-syft :
309
339
needs : [merge-docker-images]
310
340
if : always() && needs.merge-docker-images.result == 'success'
@@ -337,11 +367,11 @@ jobs:
337
367
- name : Set up Python
338
368
uses : actions/setup-python@v5
339
369
with :
340
- python-version : " 3.11 "
370
+ python-version : " 3.12 "
341
371
- name : Install dependencies
342
372
run : |
343
- python -m pip install --upgrade pip
344
- pip install --upgrade tox setuptools wheel twine bump2version PyYAML
373
+ pip install --upgrade pip uv==0.1.18 tox tox-uv==1.5.1 setuptools wheel twine bump2version PyYAML
374
+ uv --version
345
375
346
376
- name : Bump the Version
347
377
if : needs.merge-docker-images.outputs.release_tag == 'beta'
@@ -486,7 +516,7 @@ jobs:
486
516
487
517
- name : GitHub Release
488
518
if : github.event.inputs.release_platform != 'TEST_PYPI'
489
- uses : softprops/action-gh-release@v1
519
+ uses : softprops/action-gh-release@v2
490
520
with :
491
521
name : v${{ steps.release_checks.outputs.github_release_version }}
492
522
generate_release_notes : true
0 commit comments