From 9537e48f08d04e747af3c9320bd80b0a255815e8 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Thu, 12 Feb 2026 11:56:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20CI/CD=20=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E7=9B=AE=E6=A8=99=E8=87=B3=E6=96=B0=E4=B8=BB=E6=A9=9F?= =?UTF-8?q?=20(220.132.7.82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 4f7c249..9ff215c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -9,13 +9,13 @@ on: jobs: # --- 1. Demo 環境部署 (103 本機) --- deploy-demo: - if: github.ref == 'refs/heads/demo' + if: false # github.ref == 'refs/heads/demo' (暫時停用) runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 with: - github-server-url: http://192.168.0.103:3000 + # github-server-url: ${{ github.server_url }} # 自動偵測 repository: ${{ github.repository }} - name: Step 1 - Push Code to Demo @@ -120,7 +120,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 with: - github-server-url: http://192.168.0.103:3000 repository: ${{ github.repository }} - name: Step 1 - Push Code to Production @@ -136,8 +135,8 @@ jobs: --exclude='vendor' \ --exclude='storage' \ --exclude='public/build' \ - -e "ssh -p 2224 -i ~/.ssh/id_rsa_prod -o StrictHostKeyChecking=no" \ - ./ root@erp.koori.tw:/var/www/star-erp/ + -e "ssh -p 2227 -i ~/.ssh/id_rsa_prod -o StrictHostKeyChecking=no" \ + ./ root@220.132.7.82:/var/www/star-erp/ rm ~/.ssh/id_rsa_prod @@ -146,8 +145,8 @@ jobs: id: check_rebuild_prod uses: appleboy/ssh-action@master with: - host: erp.koori.tw - port: 2224 + host: 220.132.7.82 + port: 2227 username: root key: ${{ secrets.PROD_SSH_KEY }} script: | @@ -167,8 +166,8 @@ jobs: - name: Step 3 - Container Up & Health Check uses: appleboy/ssh-action@master with: - host: erp.koori.tw - port: 2224 + host: 220.132.7.82 + port: 2227 username: root key: ${{ secrets.PROD_SSH_KEY }} script: |