-
Notifications
You must be signed in to change notification settings - Fork 540
92 lines (89 loc) · 2.97 KB
/
docker-push-images.yml
File metadata and controls
92 lines (89 loc) · 2.97 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Docker Push Images
on:
workflow_dispatch: # Allows manual trigger
push:
branches: [ "main", "release-*" ]
jobs:
build-push-dockerhub:
if: github.repository == 'vllm-project/aibrix'
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
matrix:
component:
- name: controller-manager
file: build/container/Dockerfile
- name: gateway-plugins
file: build/container/Dockerfile.gateway
- name: metadata-service
file: build/container/Dockerfile.python
- name: runtime
file: build/container/Dockerfile.python
- name: kvcache-watcher
file: build/container/Dockerfile.kvcache
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build and push ${{ matrix.component.name }}
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
file: ${{ matrix.component.file }}
push: true
tags: |
aibrix/${{ matrix.component.name }}:${{ github.sha }}
aibrix/${{ matrix.component.name }}:nightly
build-push-ghcr:
if: github.repository == 'vllm-project/aibrix'
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
matrix:
component:
- name: controller-manager
file: build/container/Dockerfile
- name: gateway-plugins
file: build/container/Dockerfile.gateway
- name: metadata-service
file: build/container/Dockerfile.python
- name: runtime
file: build/container/Dockerfile.python
- name: kvcache-watcher
file: build/container/Dockerfile.kvcache
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Login to Github Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.AIBRIX_ORG_PACKAGE_UPDATE_GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build and push ${{ matrix.component.name }}
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
file: ${{ matrix.component.file }}
push: true
tags: |
ghcr.io/aibrix/${{ matrix.component.name }}:${{ github.sha }}
ghcr.io/aibrix/${{ matrix.component.name }}:nightly