forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.08 KB
/
build.yml
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
name: "Build UBI image"
on:
schedule:
- cron: "20 4 * * 1" # once a week
workflow_dispatch:
push:
branches: [main]
pull_request:
jobs:
build-image:
name: "Build UBI image"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export
uses: docker/build-push-action@v5
with:
context: .
tags: vllm
# outputs: type=oci,dest=/tmp/image.tar
outputs: type=docker,dest=/tmp/image.tar
file: ./Dockerfile.ubi
secrets: |
"AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}"
"AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}"
build-args: |
MAX_JOBS=2
NVCC_THREADS=2
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: vlm
path: /tmp/image.tar