32 lines
743 B
YAML
32 lines
743 B
YAML
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
|