Compare commits

..
5 Commits
Author SHA1 Message Date
Hanzo AI 8bdf4f0162 ci: add id-token: write to caller permissions
Required for hanzoai/.github/.github/workflows/docker-build.yml@main —
without it the workflow_call dies as startup_failure with no jobs
dispatched. Caller permissions are a CEILING.
2026-05-07 09:10:40 -07:00
Hanzo DevandGitHub 57ee510636 ci: migrate to canonical hanzoai/.github/docker-build.yml reusable (#7) 2026-04-23 18:59:34 -07:00
Hanzo DevandGitHub 8a907e5d62 ci: migrate to canonical docker-build reusable workflow (#6)
Replace bespoke 59-line docker build with the 10-line canonical caller
that uses hanzoai/.github/.github/workflows/docker-build.yml@main.

Native amd64+arm64 ARC runners, semver + branch tags, multi-arch manifest
via the one shared workflow path. Cache-key preserved for scope=kv.

Co-authored-by: Hanzo AI <dev@hanzo.ai>
2026-04-23 18:12:20 -07:00
Hanzo AI 098c704063 chore: add .dockerignore 2026-04-17 16:58:14 -07:00
Hanzo AI 92a4fbfcc9 ci: build on main/dev/test 2026-04-08 08:51:09 -07:00
3 changed files with 29 additions and 53 deletions
+7
View File
@@ -0,0 +1,7 @@
.git
*.md
LICENSE
.vscode/
.idea/
.env*
docs/
+15 -53
View File
@@ -1,58 +1,20 @@
name: Build and Deploy Hanzo KV
name: Docker
on:
push:
branches: [main]
tags: ['v*']
paths:
- 'src/**'
- 'deps/**'
- 'Dockerfile'
- '.github/workflows/deploy.yml'
workflow_dispatch:
push:
branches: [main, dev, test, unstable]
tags: ['v*']
permissions:
contents: read
packages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/hanzoai/kv
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=9,enable={{is_default_branch}}
type=sha,prefix=
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=kv
cache-to: type=gha,mode=max,scope=kv
docker:
uses: hanzoai/.github/.github/workflows/docker-build.yml@main
with:
image: ghcr.io/hanzoai/kv
cache-key: kv
secrets: inherit
+7
View File
@@ -0,0 +1,7 @@
name: Workflow Sanity
on:
pull_request:
paths: ['.github/workflows/**']
jobs:
sanity:
uses: hanzoai/.github/.github/workflows/workflow-sanity.yml@main