chore(ci): Gitea Actions 워크플로 제거 — Gitea native Webhook 으로 대체
Gitea Settings → Webhooks 에 동일 repo 에 webhook 등록 완료 (id=1).
push 시 Gitea 가 즉시 /api/deploy/webhook 호출 → 분리 deployer 컨테이너
가 자동배포. Actions 화면의 노란색/빨강 사이클 자체가 사라짐.
자동배포 검증: 76167f0 push → 71초만에 운영 반영 확인.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
name: Deploy momo-erp
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# 단일 step — webhook 트리거만. 운영 빌드/swap 은 분리 deployer 컨테이너가 비동기로 진행.
|
||||
# 워크플로는 webhook 호출 성공 시점에 즉시 ✅ 로 종료한다 (보통 5~10초).
|
||||
# 운영 실제 반영 검증: https://momotogether.com/build-sha.txt 또는
|
||||
# curl -k 'https://momotogether.com/api/deploy/webhook?token=momo-deploy-2026-secure' 로 로그 조회.
|
||||
- name: Trigger deploy webhook
|
||||
run: |
|
||||
set -e
|
||||
echo "▶ POST https://momotogether.com/api/deploy/webhook (sha=${{ github.sha }})"
|
||||
HTTP=$(curl -ksS -m 30 -o /tmp/resp.json -w "%{http_code}" \
|
||||
-X POST "https://momotogether.com/api/deploy/webhook" \
|
||||
-H "X-Deploy-Token: momo-deploy-2026-secure" \
|
||||
-H "Content-Type: application/json" -d '{}' || echo "000")
|
||||
echo " HTTP=$HTTP"
|
||||
cat /tmp/resp.json | head -20 || true
|
||||
if [ "$HTTP" != "200" ]; then
|
||||
echo "::error::webhook 호출 실패 (HTTP=$HTTP)"
|
||||
exit 1
|
||||
fi
|
||||
echo "::notice::✔ 자동배포 트리거 — 운영 deployer 컨테이너에서 git pull→build→swap 진행 중 (보통 60~90초 후 반영)"
|
||||
Reference in New Issue
Block a user