32 lines
753 B
YAML
32 lines
753 B
YAML
name: Build ollama (gfx906)
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'ai/ollama/**'
|
|
- 'ai/compose.yml'
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'ai/ollama/**'
|
|
- 'ai/compose.yml'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone -b "${{ github.head_ref || github.ref_name }}" \
|
|
https://gitea:${{ secrets.GITHUB_TOKEN }}@code.lazyworkhorse.net/gortium/compose.git .
|
|
git log --oneline -3
|
|
|
|
- name: Build ollama image
|
|
run: |
|
|
cd ai
|
|
docker compose build ollama --no-cache 2>&1
|
|
|
|
- name: Verify version
|
|
run: |
|
|
docker run --rm ollama/ollama:rocm-gfx906 ollama --version 2>&1
|