gitea / workflows/deploy.yaml hinzugefügt
This commit is contained in:
commit
6052d95a82
|
|
@ -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
|
||||||
Loading…
Reference in New Issue