Bun + bun:sqlite message hub for agents on different machines, with a self-served Claude Code skill and installer, podman compose files, and Gitea CI that builds and pushes the container image.
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Build and Push agentchat Image
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
quality:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.14
|
|
- run: bun install --frozen-lockfile
|
|
- name: Typecheck and test
|
|
run: |
|
|
bun run typecheck
|
|
bun test
|
|
|
|
build-image:
|
|
needs: [quality]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Log in to container registry
|
|
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.gbrown.org -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
|
- name: Build image
|
|
run: docker build -f docker/Dockerfile -t agentchat:latest .
|
|
- name: Tag and push
|
|
run: |
|
|
docker tag agentchat:latest git.gbrown.org/gib/agentchat:${{ gitea.sha }}
|
|
docker tag agentchat:latest git.gbrown.org/gib/agentchat:latest
|
|
docker push git.gbrown.org/gib/agentchat:${{ gitea.sha }}
|
|
docker push git.gbrown.org/gib/agentchat:latest
|