From 46a6d4697e42439d64407260036926a2c9d50de9 Mon Sep 17 00:00:00 2001 From: chpark Date: Sat, 30 May 2026 18:20:21 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C=20se?= =?UTF-8?q?lf-hosted=20=EB=9D=BC=EB=B2=A8=EB=A1=9C=20=EC=A6=89=EC=8B=9C=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=20=E2=80=94=20image=20pull=200=EC=B4=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit act_runner 라벨 [ubuntu-latest:host, self-hosted:host] 둘 다 :host 매핑 이라 컨테이너 없이 호스트 셸 직접 실행. ubuntu image pull 시간(10분+) 제거 → 워크플로 ~10초 안에 ✅. Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..d617008 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,20 @@ +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초 안에 반영)"