|
| 1 | +--- |
| 2 | +name: 'build container images tests' |
| 3 | + |
| 4 | +on: |
| 5 | + pull_request: |
| 6 | + |
| 7 | +concurrency: |
| 8 | + group: ci-${{ github.head_ref || github.ref }}-${{ github.repository }} |
| 9 | + cancel-in-progress: true |
| 10 | + |
| 11 | +jobs: |
| 12 | + extras-image-build: |
| 13 | + uses: ./.github/workflows/image_build.yml |
| 14 | + with: |
| 15 | + tag-latest: ${{ matrix.tag-latest }} |
| 16 | + tag-suffix: ${{ matrix.tag-suffix }} |
| 17 | + ffmpeg: ${{ matrix.ffmpeg }} |
| 18 | + image-type: ${{ matrix.image-type }} |
| 19 | + build-type: ${{ matrix.build-type }} |
| 20 | + cuda-major-version: ${{ matrix.cuda-major-version }} |
| 21 | + cuda-minor-version: ${{ matrix.cuda-minor-version }} |
| 22 | + platforms: ${{ matrix.platforms }} |
| 23 | + runs-on: ${{ matrix.runs-on }} |
| 24 | + secrets: |
| 25 | + dockerUsername: ${{ secrets.DOCKERHUB_USERNAME }} |
| 26 | + dockerPassword: ${{ secrets.DOCKERHUB_PASSWORD }} |
| 27 | + quayUsername: ${{ secrets.LOCALAI_REGISTRY_USERNAME }} |
| 28 | + quayPassword: ${{ secrets.LOCALAI_REGISTRY_PASSWORD }} |
| 29 | + strategy: |
| 30 | + # Pushing with all jobs in parallel |
| 31 | + # eats the bandwidth of all the nodes |
| 32 | + max-parallel: ${{ github.event_name != 'pull_request' && 2 || 4 }} |
| 33 | + matrix: |
| 34 | + include: |
| 35 | + - build-type: '' |
| 36 | + platforms: 'linux/amd64' |
| 37 | + tag-latest: 'false' |
| 38 | + tag-suffix: '-ffmpeg' |
| 39 | + ffmpeg: 'true' |
| 40 | + image-type: 'extras' |
| 41 | + runs-on: 'arc-runner-set' |
| 42 | + - build-type: 'cublas' |
| 43 | + cuda-major-version: "12" |
| 44 | + cuda-minor-version: "1" |
| 45 | + platforms: 'linux/amd64' |
| 46 | + tag-latest: 'false' |
| 47 | + tag-suffix: '-cublas-cuda12-ffmpeg' |
| 48 | + ffmpeg: 'true' |
| 49 | + image-type: 'extras' |
| 50 | + runs-on: 'arc-runner-set' |
| 51 | + core-image-build: |
| 52 | + uses: ./.github/workflows/image_build.yml |
| 53 | + with: |
| 54 | + tag-latest: ${{ matrix.tag-latest }} |
| 55 | + tag-suffix: ${{ matrix.tag-suffix }} |
| 56 | + ffmpeg: ${{ matrix.ffmpeg }} |
| 57 | + image-type: ${{ matrix.image-type }} |
| 58 | + build-type: ${{ matrix.build-type }} |
| 59 | + cuda-major-version: ${{ matrix.cuda-major-version }} |
| 60 | + cuda-minor-version: ${{ matrix.cuda-minor-version }} |
| 61 | + platforms: ${{ matrix.platforms }} |
| 62 | + runs-on: ${{ matrix.runs-on }} |
| 63 | + secrets: |
| 64 | + dockerUsername: ${{ secrets.DOCKERHUB_USERNAME }} |
| 65 | + dockerPassword: ${{ secrets.DOCKERHUB_PASSWORD }} |
| 66 | + quayUsername: ${{ secrets.LOCALAI_REGISTRY_USERNAME }} |
| 67 | + quayPassword: ${{ secrets.LOCALAI_REGISTRY_PASSWORD }} |
| 68 | + strategy: |
| 69 | + matrix: |
| 70 | + include: |
| 71 | + - build-type: '' |
| 72 | + platforms: 'linux/amd64' |
| 73 | + tag-latest: 'false' |
| 74 | + tag-suffix: '-ffmpeg-core' |
| 75 | + ffmpeg: 'true' |
| 76 | + image-type: 'core' |
| 77 | + runs-on: 'ubuntu-latest' |
| 78 | + - build-type: 'cublas' |
| 79 | + cuda-major-version: "12" |
| 80 | + cuda-minor-version: "1" |
| 81 | + platforms: 'linux/amd64' |
| 82 | + tag-latest: 'false' |
| 83 | + tag-suffix: '-cublas-cuda12-ffmpeg-core' |
| 84 | + ffmpeg: 'true' |
| 85 | + image-type: 'core' |
| 86 | + runs-on: 'ubuntu-latest' |
0 commit comments