Add vllm-ipex service for llms and lvms (#1926) #229
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (C) 2025 Intel Corporation | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Build and upstream latest base image on push event | |
| permissions: read-all | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - '**/cores/**' | |
| - '**/src/**' | |
| - 'requirements.txt' | |
| - 'Dockerfile' | |
| - 'comps/*.py' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-on-push | |
| cancel-in-progress: true | |
| jobs: | |
| image-build: | |
| strategy: | |
| matrix: | |
| node: [gaudi] | |
| runs-on: docker-build-${{ matrix.node }} | |
| continue-on-error: true | |
| steps: | |
| - name: Clean up Working Directory | |
| run: | | |
| echo "Build opea/comps-base:latest, opea/comps-base:latest-openeuler !" | |
| sudo rm -rf ${{github.workspace}}/* | |
| - name: Checkout out Repo | |
| uses: actions/checkout@v4 | |
| - name: Build Image | |
| uses: opea-project/validation/actions/image-build@main | |
| with: | |
| work_dir: ${{ github.workspace }} | |
| docker_compose_path: ${{ github.workspace }}/.github/workflows/docker/compose/base-compose.yaml | |
| registry: ${OPEA_IMAGE_REPO}opea | |
| base-image-publish: | |
| needs: [ image-build ] | |
| strategy: | |
| matrix: | |
| image: [ "comps-base", "comps-base-openeuler" ] | |
| fail-fast: false | |
| runs-on: [ docker-upstream ] | |
| steps: | |
| - uses: docker/[email protected] | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USER }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Image Publish | |
| uses: opea-project/validation/actions/image-publish@main | |
| with: | |
| local_image_ref: ${OPEA_IMAGE_REPO}opea/${{ matrix.image }}:latest | |
| image_name: opea/${{ matrix.image }} | |
| publish_tags: latest |