Skip to content

Commit 5d5421b

Browse files
committed
Add build docker
1 parent 81631af commit 5d5421b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-docker.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)