.gitea/workflows/deploy.yml aktualisiert
Deploy Standortpruefung / deploy (push) Failing after 2s
Details
Deploy Standortpruefung / deploy (push) Failing after 2s
Details
This commit is contained in:
parent
af7888e518
commit
0a8d75f11d
|
|
@ -1,5 +1,6 @@
|
|||
name: Deploy Standortpruefung
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -11,17 +12,15 @@ jobs:
|
|||
username: ${{ secrets.DEPLOY_USER }}
|
||||
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
script: |
|
||||
# HIER kommen die Pfad-Befehle aus der Anleitung rein:
|
||||
# 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
|
||||
|
||||
# Code aktualisieren (Reset erzwingen, damit es aktuell ist)
|
||||
if [ ! -d ".git" ]; then
|
||||
git clone https://git.enwelo-serverumgebung.cloud/gitea-enwelo-jba/wind_tool_standortprüfung.git .
|
||||
else
|
||||
# 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
|
||||
fi
|
||||
|
||||
# Starten nach Anleitung
|
||||
docker compose up -d --build --force-recreate
|
||||
# 3. NUR diese App starten (Projektname festlegen verhindert Konflikte)
|
||||
docker compose -p wind-tool-app up -d --build --force-recreate
|
||||
Loading…
Reference in New Issue