mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 17:50:00 +00:00
30 lines
857 B
YAML
30 lines
857 B
YAML
name: Docker Build and Publish
|
|
|
|
on:
|
|
push
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Log in to the Container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Custom build docker image
|
|
run: |
|
|
pip install --no-cache --index-url https://pypi.org/simple/ --extra-index-url https://test.pypi.org/simple/ llama-stack==0.0.63.dev20250114
|
|
TESTPYPI_VERSION=0.0.63.dev20250114 llama stack build --template ollama --image-type docker
|
|
docker images
|