forked from kaito-project/airunway
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.79 KB
/
Copy pathrelease-vllm-provider.yml
File metadata and controls
60 lines (52 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Temporary — providers will be moved out-of-tree.
# Remove this workflow once vLLM provider has its own repository and CI.
name: Release vLLM Provider
on:
workflow_dispatch:
inputs:
version:
description: 'Version tag (e.g., v1.0.0)'
required: true
type: string
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
jobs:
build-and-push:
name: Build and Push vLLM Provider Image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
- name: Log in to Container Registry
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Load pinned versions
run: |
set -a
# shellcheck disable=SC1091
. ./versions.env
set +a
echo "VLLM_VERSION=$VLLM_VERSION" >> "$GITHUB_ENV"
- name: Build and push Docker image
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: .
file: providers/vllm/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/kaito-project/airunway/vllm-provider:${{ inputs.version }}
ghcr.io/kaito-project/airunway/vllm-provider:latest
build-args: |
VLLM_VERSION=${{ env.VLLM_VERSION }}
SHIM_VERSION=${{ inputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max