From 34b1cb83a0d91dabe65bd384c551e416bdc65ddc Mon Sep 17 00:00:00 2001 From: Hermes Date: Sun, 10 May 2026 21:33:10 -0400 Subject: [PATCH] feat: add Gitea Actions workflows for ollama and hermes Docker builds --- .gitea/workflows/build-hermes.yml | 31 +++++++++++++++++++++++++++++++ .gitea/workflows/build-ollama.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .gitea/workflows/build-hermes.yml create mode 100644 .gitea/workflows/build-ollama.yml diff --git a/.gitea/workflows/build-hermes.yml b/.gitea/workflows/build-hermes.yml new file mode 100644 index 0000000..8684f16 --- /dev/null +++ b/.gitea/workflows/build-hermes.yml @@ -0,0 +1,31 @@ +name: Build Hermes agent +on: + pull_request: + branches: [ master ] + paths: + - 'ai/hermes/**' + - 'ai/compose.yml' + push: + branches: [ master ] + paths: + - 'ai/hermes/**' + - '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 hermes image + run: | + cd ai + docker compose build hermes 2>&1 + + - name: Verify image + run: | + docker run --rm ai-hermes /opt/hermes/.venv/bin/python --version 2>&1 diff --git a/.gitea/workflows/build-ollama.yml b/.gitea/workflows/build-ollama.yml new file mode 100644 index 0000000..69b622a --- /dev/null +++ b/.gitea/workflows/build-ollama.yml @@ -0,0 +1,31 @@ +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