Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

1.8 KB
Raw Blame
# Cloud Build — builds and pushes the agent-sniper image to Artifact Registry.
#
# IMPORTANT: unlike the world image, this one builds from the REPO ROOT as
# context. The sniper Dockerfile (workers/agent-sniper/Dockerfile) copies
# `api/`, the `agent-payments-sdk/` workspace, and `workers/agent-sniper/` — it
# is not self-contained in its own directory.
#
# Run manually from the repo root:
#   gcloud builds submit --config deploy/sniper/cloudbuild.yaml .
#
# Or end to end (build → push → deploy → verify):
#   node scripts/deploy-sniper.mjs

# _TAG defaults to "latest" so a manual `gcloud builds submit` works with no extra
# flags. The built-in $SHORT_SHA is only populated for trigger/VCS builds — on a
# local submit it is empty, which produced an invalid "…/agent-sniper:" image name
# and failed the build at validation. A Cloud Build trigger can still override _TAG
# with the commit SHA. cloudrun.yaml pulls :latest, so that tag is what deploys.
substitutions:
  _REGION: us-central1
  _REPO: workers
  _IMAGE: agent-sniper
  _TAG: latest

steps:
  - name: gcr.io/cloud-builders/docker
    args:
      - build
      - -t
      - ${_REGION}-docker.pkg.dev/$PROJECT_ID/${_REPO}/${_IMAGE}:${_TAG}
      - -t
      - ${_REGION}-docker.pkg.dev/$PROJECT_ID/${_REPO}/${_IMAGE}:latest
      - -f
      - workers/agent-sniper/Dockerfile
      - .
    timeout: 1200s

images:
  - ${_REGION}-docker.pkg.dev/$PROJECT_ID/${_REPO}/${_IMAGE}:${_TAG}
  - ${_REGION}-docker.pkg.dev/$PROJECT_ID/${_REPO}/${_IMAGE}:latest

options:
  machineType: E2_HIGHCPU_8
  logging: CLOUD_LOGGING_ONLY

# The project's default compute SA was deleted; every manual build must pin the
# dedicated build SA or Cloud Build refuses the submission.
serviceAccount: projects/aerial-vehicle-466722-p5/serviceAccounts/[email protected]