mirror of
https://github.com/mudler/LocalAI.git
synced 2024-06-07 19:40:48 +00:00
e3ca1a7dbe
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
158 lines
5.1 KiB
YAML
158 lines
5.1 KiB
YAML
---
|
|
name: 'build container images'
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- '*'
|
|
|
|
concurrency:
|
|
group: ci-${{ github.head_ref || github.ref }}-${{ github.repository }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
extras-image-build:
|
|
uses: ./.github/workflows/image_build.yml
|
|
with:
|
|
tag-latest: ${{ matrix.tag-latest }}
|
|
tag-suffix: ${{ matrix.tag-suffix }}
|
|
ffmpeg: ${{ matrix.ffmpeg }}
|
|
image-type: ${{ matrix.image-type }}
|
|
build-type: ${{ matrix.build-type }}
|
|
cuda-major-version: ${{ matrix.cuda-major-version }}
|
|
cuda-minor-version: ${{ matrix.cuda-minor-version }}
|
|
platforms: ${{ matrix.platforms }}
|
|
runs-on: ${{ matrix.runs-on }}
|
|
secrets:
|
|
dockerUsername: ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
|
|
dockerPassword: ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
|
|
strategy:
|
|
# Pushing with all jobs in parallel
|
|
# eats the bandwidth of all the nodes
|
|
max-parallel: ${{ github.event_name != 'pull_request' && 2 || 4 }}
|
|
matrix:
|
|
include:
|
|
- build-type: ''
|
|
#platforms: 'linux/amd64,linux/arm64'
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'auto'
|
|
tag-suffix: ''
|
|
ffmpeg: ''
|
|
image-type: 'extras'
|
|
runs-on: 'arc-runner-set'
|
|
- build-type: ''
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-ffmpeg'
|
|
ffmpeg: 'true'
|
|
image-type: 'extras'
|
|
runs-on: 'arc-runner-set'
|
|
- build-type: 'cublas'
|
|
cuda-major-version: "11"
|
|
cuda-minor-version: "7"
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-cublas-cuda11'
|
|
ffmpeg: ''
|
|
image-type: 'extras'
|
|
runs-on: 'arc-runner-set'
|
|
- build-type: 'cublas'
|
|
cuda-major-version: "12"
|
|
cuda-minor-version: "1"
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-cublas-cuda12'
|
|
ffmpeg: ''
|
|
image-type: 'extras'
|
|
runs-on: 'arc-runner-set'
|
|
- build-type: 'cublas'
|
|
cuda-major-version: "11"
|
|
cuda-minor-version: "7"
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-cublas-cuda11-ffmpeg'
|
|
ffmpeg: 'true'
|
|
image-type: 'extras'
|
|
runs-on: 'arc-runner-set'
|
|
- build-type: 'cublas'
|
|
cuda-major-version: "12"
|
|
cuda-minor-version: "1"
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-cublas-cuda12-ffmpeg'
|
|
ffmpeg: 'true'
|
|
image-type: 'extras'
|
|
runs-on: 'arc-runner-set'
|
|
- build-type: ''
|
|
#platforms: 'linux/amd64,linux/arm64'
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'auto'
|
|
tag-suffix: ''
|
|
ffmpeg: ''
|
|
image-type: 'extras'
|
|
runs-on: 'arc-runner-set'
|
|
core-image-build:
|
|
uses: ./.github/workflows/image_build.yml
|
|
with:
|
|
tag-latest: ${{ matrix.tag-latest }}
|
|
tag-suffix: ${{ matrix.tag-suffix }}
|
|
ffmpeg: ${{ matrix.ffmpeg }}
|
|
image-type: ${{ matrix.image-type }}
|
|
build-type: ${{ matrix.build-type }}
|
|
cuda-major-version: ${{ matrix.cuda-major-version }}
|
|
cuda-minor-version: ${{ matrix.cuda-minor-version }}
|
|
platforms: ${{ matrix.platforms }}
|
|
runs-on: ${{ matrix.runs-on }}
|
|
secrets:
|
|
dockerUsername: ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
|
|
dockerPassword: ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- build-type: ''
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-ffmpeg-core'
|
|
ffmpeg: 'true'
|
|
image-type: 'core'
|
|
runs-on: 'ubuntu-latest'
|
|
- build-type: 'cublas'
|
|
cuda-major-version: "11"
|
|
cuda-minor-version: "7"
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-cublas-cuda11-core'
|
|
ffmpeg: ''
|
|
image-type: 'core'
|
|
runs-on: 'ubuntu-latest'
|
|
- build-type: 'cublas'
|
|
cuda-major-version: "12"
|
|
cuda-minor-version: "1"
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-cublas-cuda12-core'
|
|
ffmpeg: ''
|
|
image-type: 'core'
|
|
runs-on: 'ubuntu-latest'
|
|
- build-type: 'cublas'
|
|
cuda-major-version: "11"
|
|
cuda-minor-version: "7"
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-cublas-cuda11-ffmpeg-core'
|
|
ffmpeg: 'true'
|
|
image-type: 'core'
|
|
runs-on: 'ubuntu-latest'
|
|
- build-type: 'cublas'
|
|
cuda-major-version: "12"
|
|
cuda-minor-version: "1"
|
|
platforms: 'linux/amd64'
|
|
tag-latest: 'false'
|
|
tag-suffix: '-cublas-cuda12-ffmpeg-core'
|
|
ffmpeg: 'true'
|
|
image-type: 'core'
|
|
runs-on: 'ubuntu-latest'
|