-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (40 loc) · 1.35 KB
/
dockerize_ollama_model.yml
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
name: 'Dockerize Ollama model'
on:
workflow_dispatch:
inputs:
model_name:
description: 'Model name'
required: true
default: 'all-minilm'
model_tag:
description: 'Model tag'
required: true
default: '22m'
ollama_version:
description: 'Ollama version'
required: false
short_description:
description: 'Short description'
required: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
with:
large-packages: false
docker-images: false
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and Deploy Docker Image
uses: ./
with:
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
docker_repository: ${{ github.event.inputs.model_name }}
docker_tag: ${{ github.event.inputs.ollama_version }}-${{ github.event.inputs.model_tag }}
model_name: ${{ github.event.inputs.model_name }}
model_tag: ${{ github.event.inputs.model_tag }}
ollama_version: ${{ github.event.inputs.ollama_version }}
short_description: ${{ github.event.inputs.short_description }}