Getting started #54
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
| name: test-docker-image | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| IMAGE: zappi/vllm-openai | |
| VLLM_VERSION: 0.10.2 | |
| TRITON_VERSION: 3.2.0 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Free additional disk space | |
| run: | | |
| df -h | |
| echo "Removing haskell..." | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf /usr/local/.ghcup | |
| echo "Removing tool cache..." | |
| sudo rm -rf /opt/hostedtoolcache | |
| df -h | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Prepare image metadata | |
| id: metadata | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.IMAGE }} | |
| tags: | | |
| type=raw,value=${{ env.VLLM_VERSION }}-triton-${{ env.TRITON_VERSION }} | |
| type=raw,value=${{ env.VLLM_VERSION }} | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Test building of image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| build-args: | | |
| VLLM_VERSION=${{ env.VLLM_VERSION }} | |
| TRITON_VERSION=${{ env.TRITON_VERSION }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| context: . | |
| file: Dockerfile | |
| labels: ${{ steps.metadata.outputs.labels }} | |
| platforms: linux/amd64 | |
| push: false | |
| tags: ${{ steps.metadata.outputs.tags }} |