Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
add custom build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xingjianll committed Nov 8, 2024
1 parent 43d64d9 commit 5349db2
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Deploy

on: workflow_dispatch

env:
REGISTRY: ghcr.io
IMAGE_NAME: vllm
jobs:
build:
runs-on: self-hosted

permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
max_jobs=16
USE_SCCACHE=1
GIT_REPO_CHECK=1
CUDA_VERSION=12.1.0
target: build

0 comments on commit 5349db2

Please sign in to comment.