ci: Actions 워크플로 완전 제거 — Gitea native Webhook 단독 사용
act_runner 매 작업마다 setup 시간 길어 워크플로 화면 노란색/빨강 도배되던 문제 근본 해결: 워크플로 자체를 안 만든다. 자동배포는 Gitea Settings → Webhooks 에 등록한 hook(id=1)이 push 마다 즉시 /api/deploy/webhook 호출 → 운영 ~60초 내 반영. 검증 흐름: git push origin main → 1분 후 https://momotogether.com/build-sha.txt Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
name: Deploy
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
# act_runner config: labels = [ubuntu-latest:host, self-hosted:host]
|
||||
# host 라벨은 컨테이너 없이 호스트 셸에서 직접 실행 → image pull 0초.
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Trigger webhook
|
||||
run: |
|
||||
set -e
|
||||
HTTP=$(curl -ksS -m 30 -o /tmp/r.json -w "%{http_code}" \
|
||||
-X POST "https://momotogether.com/api/deploy/webhook" \
|
||||
-H "X-Deploy-Token: momo-deploy-2026-secure" -d '{}' || echo "000")
|
||||
echo "HTTP=$HTTP"; cat /tmp/r.json 2>/dev/null || true
|
||||
[ "$HTTP" = "200" ] || { echo "::error::HTTP=$HTTP"; exit 1; }
|
||||
echo "::notice::✔ deploy 트리거 (운영 deployer 가 ~60초 안에 반영)"
|
||||
Reference in New Issue
Block a user