This commit is contained in:
Xi Yan 2025-01-14 14:39:37 -08:00
parent 4747c844a2
commit d97bcaf625
3 changed files with 41 additions and 5 deletions

30
.github/workflows/publish-to-docker.yml vendored Normal file
View file

@ -0,0 +1,30 @@
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