fix: 同步正式環境部署目標至 gitea_work (220.132.7.82:2227)
Some checks failed
Koori-ERP-Deploy-System / deploy-demo (push) Failing after 24s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-02-23 14:32:30 +08:00
parent 5f1f08869f
commit a2fe7b5a95

View File

@@ -15,7 +15,7 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
github-server-url: http://192.168.0.103:3000 github-server-url: https://gitea.taiwan-star.com.tw
repository: ${{ github.repository }} repository: ${{ github.repository }}
- name: Step 1 - Push Code to Demo - 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 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: deploy-production:
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -121,7 +121,6 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
github-server-url: http://192.168.0.103:3000
repository: ${{ github.repository }} repository: ${{ github.repository }}
- name: Step 1 - Push Code to Production - name: Step 1 - Push Code to Production
@@ -137,8 +136,8 @@ jobs:
--exclude='vendor' \ --exclude='vendor' \
--exclude='storage' \ --exclude='storage' \
--exclude='public/build' \ --exclude='public/build' \
-e "ssh -p 2224 -i ~/.ssh/id_rsa_prod -o StrictHostKeyChecking=no" \ -e "ssh -p 2227 -i ~/.ssh/id_rsa_prod -o StrictHostKeyChecking=no" \
./ root@erp.koori.tw:/var/www/star-erp/ ./ root@220.132.7.82:/var/www/star-erp/
rm ~/.ssh/id_rsa_prod rm ~/.ssh/id_rsa_prod
@@ -147,8 +146,8 @@ jobs:
id: check_rebuild_prod id: check_rebuild_prod
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: erp.koori.tw host: 220.132.7.82
port: 2224 port: 2227
username: root username: root
key: ${{ secrets.PROD_SSH_KEY }} key: ${{ secrets.PROD_SSH_KEY }}
script: | script: |
@@ -168,8 +167,8 @@ jobs:
- name: Step 3 - Container Up & Health Check - name: Step 3 - Container Up & Health Check
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: erp.koori.tw host: 220.132.7.82
port: 2224 port: 2227
username: root username: root
key: ${{ secrets.PROD_SSH_KEY }} key: ${{ secrets.PROD_SSH_KEY }}
script: | script: |