gitea / workflows/deploy.yaml hinzugefügt

This commit is contained in:
gitea-enwelo-jba 2026-06-24 11:32:07 +00:00
commit 6052d95a82
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
- name: Deploy auf Server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /opt/automation-stack/bw-samern-ohne
git pull
# .env Datei wird hier durch die secrets neu geschrieben
echo "DB_NAME=${{ secrets.DB_NAME }}" > .env
# ... (weitere env Variablen)
docker compose up -d --build --force-recreate