From 6e1fd0918a20eedb2c9f3c9ab0a00ee86523381c Mon Sep 17 00:00:00 2001 From: htlee Date: Mon, 6 Apr 2026 14:12:55 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20Gitea=20Actions=20=EC=9E=90=EB=8F=99?= =?UTF-8?q?=EB=B0=B0=ED=8F=AC=20=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C?= =?UTF-8?q?=EC=9A=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main push 시 npm build → kcg-ai-monitoring.gc-si.dev 자동 배포. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/deploy.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..f7a1c2b --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,37 @@ +name: Build and Deploy KCG AI Monitoring + +on: + push: + branches: + - main + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '24' + + - name: Configure npm registry + run: | + echo "registry=https://nexus.gc-si.dev/repository/npm-public/" > .npmrc + echo "//nexus.gc-si.dev/repository/npm-public/:_auth=${{ secrets.NEXUS_NPM_AUTH }}" >> .npmrc + + - name: Install dependencies + run: npm ci --legacy-peer-deps + + - name: Build + run: npm run build + + - name: Deploy to server + run: | + mkdir -p /deploy/kcg-ai-monitoring + rm -rf /deploy/kcg-ai-monitoring/* + cp -r dist/* /deploy/kcg-ai-monitoring/ + echo "Deployed at $(date '+%Y-%m-%d %H:%M:%S')" + ls -la /deploy/kcg-ai-monitoring/ -- 2.45.2