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

Build and Deploy

Build and Deploy #2

Workflow file for this run

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