diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 6c97109..4a05d8c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -15,7 +15,7 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 with: - github-server-url: http://192.168.0.103:3000 + github-server-url: https://gitea.taiwan-star.com.tw repository: ${{ github.repository }} - name: Step 1 - Push Code to Demo @@ -113,7 +113,7 @@ jobs: " docker exec star-erp-laravel chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache - # --- 2. 正式環境部署 (erp.koori.tw:2224) --- + # --- 2. 正式環境部署 (220.132.7.82:2227) --- deploy-production: if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest @@ -121,7 +121,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 @@ -137,8 +136,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 @@ -147,8 +146,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: | @@ -168,8 +167,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: |