Files
agent-bounty-protocol/.gitea/workflows/deploy.yml
ogt f110ac602f
Some checks failed
CI and Production Smoke / smoke (push) Has been cancelled
fix(ci): remove GitHub checkout dependency
2026-07-18 19:44:05 +08:00

47 lines
1.6 KiB
YAML

name: CI and Production Smoke
on:
push:
branches:
- main
paths-ignore:
- "docs/**"
- "**/*.md"
jobs:
smoke:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout exact source from Gitea
run: |
set -euo pipefail
repo_url="${GITHUB_SERVER_URL:-http://192.168.0.110:3001}/${GITHUB_REPOSITORY:-wooo/agent-bounty-protocol}.git"
ref="${GITHUB_SHA:?missing GITHUB_SHA}"
git init .
git remote remove origin 2>/dev/null || true
git remote add origin "$repo_url"
git fetch --no-tags --depth=1 origin "$ref"
git checkout --force --detach FETCH_HEAD
- name: Validate shell scripts
run: |
set -euo pipefail
find scripts -name '*.sh' -print0 | xargs -0 -n1 bash -n
- name: Validate production compose contract
run: |
set -euo pipefail
test -f docker-compose.yml
grep -q 'ADMIN_USERNAME' docker-compose.yml
grep -q 'ADMIN_PASSWORD' docker-compose.yml
grep -q 'TRAFFIC_MONITOR_TOKEN' docker-compose.yml
grep -q 'VIBEWORK_TREASURY_USDC_ADDRESS' docker-compose.yml
- name: Smoke production health
run: |
set -euo pipefail
curl -fsS https://agent.wooo.work/api/v1/health | grep -q '"status":"ok"'
curl -fsS https://agent.wooo.work/api/open-tasks >/tmp/open-tasks.json
curl -fsS 'https://agent.wooo.work/api/a2a/growth/kit?agent_id=ci-smoke&register=false' | grep -q 'vibework.wooo.work/propose'