File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Docker
2+
3+ on : workflow_dispatch
4+
5+ jobs :
6+ docker :
7+ name : Build and push Docker image
8+ runs-on : ubuntu-latest
9+ needs : build-n-publish
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v3
13+
14+ - name : Set up QEMU
15+ uses : docker/setup-qemu-action@v2
16+
17+ - name : Set up Docker Buildx
18+ uses : docker/setup-buildx-action@v2
19+
20+ - name : Login to GitHub Container Registry
21+ uses : docker/login-action@v2
22+ with :
23+ registry : ghcr.io
24+ username : ${{ github.repository_owner }}
25+ password : ${{ secrets.GITHUB_TOKEN }}
26+
27+ - name : Build and push
28+ uses : docker/build-push-action@v4
29+ with :
30+ push : true # push to registry
31+ pull : true # always fetch the latest base images
32+ platforms : linux/amd64,linux/arm64 # build for both amd64 and arm64
33+ tags : ghcr.io/abetlen/llama-cpp-python:latest
You can’t perform that action at this time.
0 commit comments