@@ -255,6 +255,7 @@ jobs:
255
255
cache-from : type=gha
256
256
platforms : ${{ inputs.platforms }}
257
257
push : ${{ github.event_name != 'pull_request' }}
258
+ load : ${{ github.event_name != 'pull_request' && inputs.latest-image != '' && github.ref_type == 'tag' }}
258
259
tags : ${{ steps.meta.outputs.tags }}
259
260
labels : ${{ steps.meta.outputs.labels }}
260
261
# ## Start testing image
@@ -298,6 +299,7 @@ jobs:
298
299
file : ./Dockerfile.aio
299
300
platforms : ${{ inputs.platforms }}
300
301
push : ${{ github.event_name != 'pull_request' }}
302
+ load : ${{ github.event_name != 'pull_request' && inputs.latest-image-aio != '' && github.ref_type == 'tag' }}
301
303
tags : ${{ steps.meta_aio.outputs.tags }}
302
304
labels : ${{ steps.meta_aio.outputs.labels }}
303
305
@@ -313,6 +315,7 @@ jobs:
313
315
file : ./Dockerfile.aio
314
316
platforms : ${{ inputs.platforms }}
315
317
push : ${{ github.event_name != 'pull_request' }}
318
+ load : ${{ github.event_name != 'pull_request' && inputs.latest-image-aio != '' && github.ref_type == 'tag' }}
316
319
tags : ${{ steps.meta_aio_dockerhub.outputs.tags }}
317
320
labels : ${{ steps.meta_aio_dockerhub.outputs.labels }}
318
321
@@ -325,20 +328,16 @@ jobs:
325
328
# run this on branches, when it is a tag and there is a latest-image defined
326
329
if : github.event_name != 'pull_request' && inputs.latest-image != '' && github.ref_type == 'tag'
327
330
run : |
328
- docker pull localai/localai:${{ steps.meta.outputs.version }}
329
331
docker tag localai/localai:${{ steps.meta.outputs.version }} localai/localai:${{ inputs.latest-image }}
330
332
docker push localai/localai:${{ inputs.latest-image }}
331
- docker pull quay.io/go-skynet/local-ai:${{ steps.meta.outputs.version }}
332
333
docker tag quay.io/go-skynet/local-ai:${{ steps.meta.outputs.version }} quay.io/go-skynet/local-ai:${{ inputs.latest-image }}
333
334
docker push quay.io/go-skynet/local-ai:${{ inputs.latest-image }}
334
335
- name : Latest AIO tag
335
336
# run this on branches, when it is a tag and there is a latest-image defined
336
337
if : github.event_name != 'pull_request' && inputs.latest-image-aio != '' && github.ref_type == 'tag'
337
338
run : |
338
- docker pull localai/localai:${{ steps.meta_aio_dockerhub.outputs.version }}
339
339
docker tag localai/localai:${{ steps.meta_aio_dockerhub.outputs.version }} localai/localai:${{ inputs.latest-image-aio }}
340
340
docker push localai/localai:${{ inputs.latest-image-aio }}
341
- docker pull quay.io/go-skynet/local-ai:${{ steps.meta_aio.outputs.version }}
342
341
docker tag quay.io/go-skynet/local-ai:${{ steps.meta_aio.outputs.version }} quay.io/go-skynet/local-ai:${{ inputs.latest-image-aio }}
343
342
docker push quay.io/go-skynet/local-ai:${{ inputs.latest-image-aio }}
344
343
0 commit comments