wind_tool_standortpruefung/.gitea/workflows/deploy.yml

26 lines
1.0 KiB
YAML

name: Deploy Standortpruefung
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: |
# 1. In den Zielordner wechseln (Checkliste Punkt 5)
mkdir -p /opt/automation-stack/apps/wind-tool-standortpruefung
cd /opt/automation-stack/apps/wind-tool-standortpruefung
# 2. Code aktualisieren (Wir nutzen den Pfad direkt, um Passwort-Probleme zu umgehen)
git init .
git remote add origin https://git.enwelo-serverumgebung.cloud/gitea-enwelo-jba/wind_tool_standortprüfung.git || true
git fetch origin main
git reset --hard origin/main
# 3. NUR diese App starten (Projektname festlegen verhindert Konflikte)
docker compose -p wind-tool-app up -d --build --force-recreate