mirror of
https://github.com/hanzoai/brand.git
synced 2026-10-23 03:05:28 +00:00
deploy.yml ran buildx on a runner with no Docker daemon, so it never published. hanzo.yml now declares the image and cicd.yml hands it to the build door. Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
28 lines
1021 B
YAML
28 lines
1021 B
YAML
# Canonical CI/CD config for hanzoai/brand — the one file both the hanzoai/ci
|
|
# reusable (.hanzo/workflows/cicd.yml) and platform.hanzo.ai read.
|
|
#
|
|
# @hanzo/brand is an npm package; the static brand site it also carries is the
|
|
# image declared at the end of this file, built by the build door.
|
|
#
|
|
# The gate is the package's own: type-check, then `pnpm test`, which builds all
|
|
# seven tsup entries and then runs the node:test suites against the result. The
|
|
# two suites are the ones that matter for a brand registry — brand.json
|
|
# consistency (the data file agreeing with itself) and the registry surface —
|
|
# so a token added to the JSON without a registry entry, or the reverse, is red.
|
|
test:
|
|
- name: build
|
|
run: |
|
|
set -e
|
|
corepack enable
|
|
pnpm install --frozen-lockfile
|
|
pnpm type-check
|
|
pnpm test
|
|
|
|
# Built by the build door, one BuildKit Job per platform.
|
|
images:
|
|
- name: brand
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
repo: ghcr.io/hanzoai/brand
|
|
platforms: [linux/amd64]
|