diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 0c708b1d..d2607579 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -29,6 +29,7 @@ jobs: aio: ${{ matrix.aio }} makeflags: ${{ matrix.makeflags }} latest-image: ${{ matrix.latest-image }} + latest-image-aio: ${{ matrix.latest-image-aio }} secrets: dockerUsername: ${{ secrets.DOCKERHUB_USERNAME }} dockerPassword: ${{ secrets.DOCKERHUB_PASSWORD }} @@ -93,7 +94,8 @@ jobs: runs-on: 'arc-runner-set' base-image: "ubuntu:22.04" aio: "-aio-gpu-nvidia-cuda-11" - latest-image: 'latest-aio-gpu-nvidia-cuda-11' + latest-image: 'latest-gpu-nvidia-cuda-11' + latest-image-aio: 'latest-aio-gpu-nvidia-cuda-11' makeflags: "--jobs=3 --output-sync=target" - build-type: 'cublas' cuda-major-version: "12" @@ -106,7 +108,8 @@ jobs: runs-on: 'arc-runner-set' base-image: "ubuntu:22.04" aio: "-aio-gpu-nvidia-cuda-12" - latest-image: 'latest-aio-gpu-nvidia-cuda-12' + latest-image: 'latest-gpu-nvidia-cuda-12' + latest-image-aio: 'latest-aio-gpu-nvidia-cuda-12' makeflags: "--jobs=3 --output-sync=target" - build-type: '' #platforms: 'linux/amd64,linux/arm64' @@ -126,7 +129,8 @@ jobs: image-type: 'extras' aio: "-aio-gpu-hipblas" base-image: "rocm/dev-ubuntu-22.04:6.0-complete" - latest-image: 'latest-aio-gpu-hipblas' + latest-image: 'latest-gpu-hipblas' + latest-image-aio: 'latest-aio-gpu-hipblas' runs-on: 'arc-runner-set' makeflags: "--jobs=3 --output-sync=target" - build-type: 'hipblas' @@ -147,7 +151,8 @@ jobs: image-type: 'extras' runs-on: 'arc-runner-set' aio: "-aio-gpu-intel-f16" - latest-image: 'latest-aio-gpu-intel-f16' + latest-image: 'latest-gpu-intel-f16' + latest-image-aio: 'latest-aio-gpu-intel-f16' makeflags: "--jobs=3 --output-sync=target" - build-type: 'sycl_f32' platforms: 'linux/amd64' @@ -158,7 +163,8 @@ jobs: image-type: 'extras' runs-on: 'arc-runner-set' aio: "-aio-gpu-intel-f32" - latest-image: 'latest-aio-gpu-intel-f32' + latest-image: 'latest-gpu-intel-f32' + latest-image-aio: 'latest-aio-gpu-intel-f32' makeflags: "--jobs=3 --output-sync=target" # Core images - build-type: 'sycl_f16' @@ -232,6 +238,7 @@ jobs: base-image: ${{ matrix.base-image }} makeflags: ${{ matrix.makeflags }} latest-image: ${{ matrix.latest-image }} + latest-image-aio: ${{ matrix.latest-image-aio }} secrets: dockerUsername: ${{ secrets.DOCKERHUB_USERNAME }} dockerPassword: ${{ secrets.DOCKERHUB_PASSWORD }} @@ -249,7 +256,8 @@ jobs: base-image: "ubuntu:22.04" runs-on: 'ubuntu-latest' aio: "-aio-cpu" - latest-image: 'latest-aio-cpu' + latest-image: 'latest-cpu' + latest-image-aio: 'latest-aio-cpu' makeflags: "--jobs=5 --output-sync=target" - build-type: 'cublas' cuda-major-version: "11" diff --git a/.github/workflows/image_build.yml b/.github/workflows/image_build.yml index affa03bf..cba78933 100644 --- a/.github/workflows/image_build.yml +++ b/.github/workflows/image_build.yml @@ -33,6 +33,10 @@ on: description: 'Tag latest' default: '' type: string + latest-image-aio: + description: 'Tag latest' + default: '' + type: string tag-suffix: description: 'Tag suffix' default: '' @@ -280,12 +284,12 @@ jobs: docker tag quay.io/go-skynet/local-ai:${{ steps.meta.outputs.version }} quay.io/go-skynet/local-ai:${{ inputs.latest-image }} - name: Latest AIO tag # run this on branches, when it is a tag and there is a latest-image defined - if: github.event_name != 'pull_request' && inputs.latest-image != '' && github.ref_type == 'tag' + if: github.event_name != 'pull_request' && inputs.latest-image-aio != '' && github.ref_type == 'tag' run: | docker pull localai/localai:${{ steps.meta_aio_dockerhub.outputs.version }} - docker tag localai/localai:${{ steps.meta_aio_dockerhub.outputs.version }} localai/localai:${{ inputs.latest-image }} + docker tag localai/localai:${{ steps.meta_aio_dockerhub.outputs.version }} localai/localai:${{ inputs.latest-image-aio }} docker pull quay.io/go-skynet/local-ai:${{ steps.meta_aio.outputs.version }} - docker tag quay.io/go-skynet/local-ai:${{ steps.meta_aio.outputs.version }} quay.io/go-skynet/local-ai:${{ inputs.latest-image }} + docker tag quay.io/go-skynet/local-ai:${{ steps.meta_aio.outputs.version }} quay.io/go-skynet/local-ai:${{ inputs.latest-image-aio }} - name: job summary run: |