forked from bartowski1182/koboldcpp-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.35 KB
/
Copy pathcpu-docker.yml
File metadata and controls
49 lines (45 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Docker
on:
push:
# schedule:
# - cron: '0 0 * * *'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
-
name: Maximize build space
uses: easimon/maximize-build-space@master
with:
overprovision-lvm: 'true'
remove-dotnet: 'true'
remove-android: 'true'
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Set build date
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
-
name: Set version
run: echo "VERSION_TAG=nightly" >> $GITHUB_ENV
-
name: Build and push - CPU
uses: docker/build-push-action@v4
with:
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
context: .
file: Dockerfile_cpu
build-args: BUILD_DATE=${{ env.BUILD_DATE }},VERSION_TAG=${{ env.VERSION_TAG }}
tags: michaelbui/koboldcpp-docker:1.43, michaelbui/koboldcpp-docker:1.43-openblas, michaelbui/koboldcpp-docker:cpu-1.43-openblas-noavx2