46a6d4697e
Deploy / deploy (push) Failing after 12m13s
act_runner 라벨 [ubuntu-latest:host, self-hosted:host] 둘 다 :host 매핑 이라 컨테이너 없이 호스트 셸 직접 실행. ubuntu image pull 시간(10분+) 제거 → 워크플로 ~10초 안에 ✅. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
21 lines
767 B
YAML
21 lines
767 B
YAML
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초 안에 반영)"
|