Compare commits
2 Commits
4259c7745b
...
71b676b533
| Author | SHA1 | Date | |
|---|---|---|---|
| 71b676b533 | |||
| 406d03297a |
@@ -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. 正式環境部署 (220.132.7.82:2227) ---
|
# --- 2. 正式環境部署 (220.132.7.82:2224) ---
|
||||||
deploy-production:
|
deploy-production:
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -136,7 +136,7 @@ jobs:
|
|||||||
--exclude='vendor' \
|
--exclude='vendor' \
|
||||||
--exclude='storage' \
|
--exclude='storage' \
|
||||||
--exclude='public/build' \
|
--exclude='public/build' \
|
||||||
-e "ssh -p 2227 -i ~/.ssh/id_rsa_prod -o StrictHostKeyChecking=no" \
|
-e "ssh -p 2224 -i ~/.ssh/id_rsa_prod -o StrictHostKeyChecking=no" \
|
||||||
./ root@220.132.7.82:/var/www/star-erp/
|
./ root@220.132.7.82:/var/www/star-erp/
|
||||||
rm ~/.ssh/id_rsa_prod
|
rm ~/.ssh/id_rsa_prod
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ jobs:
|
|||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: 220.132.7.82
|
host: 220.132.7.82
|
||||||
port: 2227
|
port: 2224
|
||||||
username: root
|
username: root
|
||||||
key: ${{ secrets.PROD_SSH_KEY }}
|
key: ${{ secrets.PROD_SSH_KEY }}
|
||||||
script: |
|
script: |
|
||||||
@@ -168,7 +168,7 @@ jobs:
|
|||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: 220.132.7.82
|
host: 220.132.7.82
|
||||||
port: 2227
|
port: 2224
|
||||||
username: root
|
username: root
|
||||||
key: ${{ secrets.PROD_SSH_KEY }}
|
key: ${{ secrets.PROD_SSH_KEY }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
Reference in New Issue
Block a user