Compare commits

...
Author SHA1 Message Date
Hanzo AI d5bf89bde5 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:11:30 -07:00
Hanzo AI 6b003c4e1c ci: migrate to canonical hanzoai/.github/docker-build.yml reusable 2026-04-23 19:05:15 -07:00
2 changed files with 20 additions and 45 deletions
+13 -45
View File
@@ -1,49 +1,17 @@
name: Build & Deploy
name: Docker
on:
push:
branches: [main]
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: hanzoai/sign
push:
branches: [main, dev, test]
tags: ['v*']
permissions:
contents: read
packages: write
id-token: write
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
deploy:
needs: build-and-push
uses: hanzoai/universe/.github/workflows/reusable-deploy-service.yml@main
docker:
uses: hanzoai/.github/.github/workflows/docker-build.yml@main
with:
service: sign
image: ghcr.io/hanzoai/sign:${{ github.sha }}
cluster: hanzo-k8s
namespace: hanzo
secrets:
HANZO_API_KEY: ${{ secrets.HANZO_API_KEY }}
image: ghcr.io/hanzoai/sign
dockerfile: docker/Dockerfile
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