mirror of
https://github.com/hanzoai/service-template.git
synced 2026-10-30 18:22:53 +00:00
github.com/hanzoai/template existed only as loose files: no .git, no history, no remote. Sweeps that look for a .git directory could not see it, and an rm -rf would have destroyed it with nothing to recover from. Committed as-is; no source modified. NOTE: no remote. This is still one copy in one place.
37 lines
998 B
YAML
37 lines
998 B
YAML
# Cloud Build config for hanzoai/template.
|
|
#
|
|
# Two parallel native-arch builds → manifest. No QEMU. No GitHub runners.
|
|
# Pushes to ghcr.io/hanzoai/template — Hanzo images stay on GHCR.
|
|
steps:
|
|
- name: gcr.io/cloud-builders/docker
|
|
id: build-amd64
|
|
args:
|
|
- buildx
|
|
- build
|
|
- --platform=linux/amd64
|
|
- --tag=ghcr.io/hanzoai/template:${SHORT_SHA}-amd64
|
|
- --push
|
|
- .
|
|
- name: gcr.io/cloud-builders/docker
|
|
id: build-arm64
|
|
args:
|
|
- buildx
|
|
- build
|
|
- --platform=linux/arm64
|
|
- --tag=ghcr.io/hanzoai/template:${SHORT_SHA}-arm64
|
|
- --push
|
|
- .
|
|
- name: gcr.io/cloud-builders/docker
|
|
id: manifest
|
|
waitFor: [build-amd64, build-arm64]
|
|
args:
|
|
- buildx
|
|
- imagetools
|
|
- create
|
|
- --tag=ghcr.io/hanzoai/template:${SHORT_SHA}
|
|
- ghcr.io/hanzoai/template:${SHORT_SHA}-amd64
|
|
- ghcr.io/hanzoai/template:${SHORT_SHA}-arm64
|
|
options:
|
|
machineType: E2_HIGHCPU_8
|
|
logging: CLOUD_LOGGING_ONLY
|