CI/CD : Gitea Actions deploy + source code volume mount
Deploy HouseHub / deploy (push) Successful in 5s
Deploy HouseHub / deploy (push) Successful in 5s
- .gitea/workflows/deploy.yml : git pull via SSH au push sur main → plus besoin de rebuilder le container pour les modifs PHP/CSS/JS - docker-compose.yml : monte /opt/container/househub:/var/www/html → les fichiers sont servis directement depuis le repo local Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
b87146c9cf
commit
aff2d24a34
+11
-11
@@ -1,4 +1,5 @@
|
|||||||
name: Deploy to Pacha Family
|
name: Deploy HouseHub
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
@@ -7,14 +8,13 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Deploy via SSH
|
||||||
uses: actions/checkout@v4
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
|
|
||||||
- name: Deploy to Production
|
|
||||||
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
|
||||||
with:
|
with:
|
||||||
server: ${{ secrets.FTP_SERVER_PERCOLOUCO }}
|
host: 192.168.1.29
|
||||||
username: ${{ secrets.FTP_USERNAME_PERCOLOUCO }}
|
username: perco
|
||||||
password: ${{ secrets.FTP_PASSWORD_PERCOLOUCO }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
local-dir: ./
|
script: |
|
||||||
server-dir: /www/househub/ # ← Production reste ici
|
cd /opt/container/househub
|
||||||
|
git pull
|
||||||
|
echo "✓ HouseHub mis à jour"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ services:
|
|||||||
DB_PASS: ${DB_PASS:-changeme}
|
DB_PASS: ${DB_PASS:-changeme}
|
||||||
volumes:
|
volumes:
|
||||||
- househub_uploads:/uploads
|
- househub_uploads:/uploads
|
||||||
|
- /opt/container/househub:/var/www/html
|
||||||
networks:
|
networks:
|
||||||
- househub_net
|
- househub_net
|
||||||
- proxy
|
- proxy
|
||||||
|
|||||||
Reference in New Issue
Block a user