minimind/.github/workflows/build-vllm-native-ghcr.yml

53 lines
1.3 KiB
YAML

name: Build and publish MiniMind vLLM image
on:
workflow_dispatch:
push:
branches:
- master
- codex/ghcr-clean
paths:
- Dockerfile.vllm-native
- vllm_native/**
- .github/workflows/build-vllm-native-ghcr.yml
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: liberserver/minimind
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.vllm-native
platforms: linux/amd64
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:vllm-native-0.17.0
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.sha }}
labels: |
org.opencontainers.image.source=https://github.com/LiberServer/minimind
provenance: false
sbom: false