-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (40 loc) · 1.31 KB
/
build_image.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: 'Example workflow for dockerize-ollama-models-action'
on:
workflow_dispatch:
inputs:
model_name:
description: 'Model name'
required: true
default: 'qwen2'
model_tag:
description: 'Model tag'
required: true
default: '0.5b'
docker_repository:
description: 'DockerHub repository name'
required: true
default: 'ollama-qwen2'
docker_tag:
description: 'Docker image tag'
required: true
default: '0.3.6-0.5b'
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: ./.github/actions/dockerize-ollama-models-action
with:
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
docker_repository: ${{ github.event.inputs.docker_repository }}
docker_tag: ${{ github.event.inputs.docker_tag }}
model_name: ${{ github.event.inputs.model_name }}
model_tag: ${{ github.event.inputs.model_tag }}