From 4c95eb51403c7ccbe064325e15819e3a44779f0c Mon Sep 17 00:00:00 2001 From: TtiPo Date: Sun, 19 Jul 2026 05:03:25 +0900 Subject: [PATCH] =?UTF-8?q?ci-test:=20deploy.yml=20=EC=8A=A4=ED=85=9D=20?= =?UTF-8?q?=EB=B3=B5=EC=A0=9C=20+=20=EC=9E=A1ID=20=EA=B0=80=EC=84=A4=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- .gitea/workflows/ci-test.yml | 20 +++++++++++++------- .gitea/workflows/ci-test2.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 .gitea/workflows/ci-test2.yml diff --git a/.gitea/workflows/ci-test.yml b/.gitea/workflows/ci-test.yml index c27ea052..afd7365d 100644 --- a/.gitea/workflows/ci-test.yml +++ b/.gitea/workflows/ci-test.yml @@ -1,4 +1,4 @@ -# 러너 동작 확인용 임시 워크플로우 — 확인 후 삭제 예정 +# 러너 동작 확인용 임시 워크플로우 — deploy.yml과 동일한 스텝, 이름만 다름 name: CI Test on: @@ -12,12 +12,18 @@ jobs: test: runs-on: deploy steps: - - name: Env check + - name: Pull latest code run: | - echo "DEPLOY_DIR=$DEPLOY_DIR" + cd "$DEPLOY_DIR" + git remote set-url origin "https://gitea-actions:${{ github.token }}@git.wandergo.net/partnership/blog_report.git" + git fetch origin main + git reset --hard origin/main - - name: Token check + - name: Check env files exist run: | - echo "token length: ${#GH_TOKEN}" - env: - GH_TOKEN: ${{ github.token }} + cd "$DEPLOY_DIR" + test -f .env || { echo "ERROR: $DEPLOY_DIR/.env 가 없습니다"; exit 1; } + test -f frontend/.env.production || { echo "ERROR: frontend/.env.production 이 없습니다"; exit 1; } + + - name: Docker check + run: docker compose version diff --git a/.gitea/workflows/ci-test2.yml b/.gitea/workflows/ci-test2.yml new file mode 100644 index 00000000..e7d6e559 --- /dev/null +++ b/.gitea/workflows/ci-test2.yml @@ -0,0 +1,13 @@ +# 이름/잡ID 가설 확인용 — deploy.yml과 동일한 이름 구조, 스텝은 echo만 +name: Deploy2 + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: deploy + steps: + - name: Hello + run: echo "job id deploy works"