.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
|
name: Deploy Standortpruefung
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -11,17 +12,15 @@ jobs:
|
||||||
username: ${{ secrets.DEPLOY_USER }}
|
username: ${{ secrets.DEPLOY_USER }}
|
||||||
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
script: |
|
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
|
mkdir -p /opt/automation-stack/apps/wind-tool-standortpruefung
|
||||||
cd /opt/automation-stack/apps/wind-tool-standortpruefung
|
cd /opt/automation-stack/apps/wind-tool-standortpruefung
|
||||||
|
|
||||||
# Code aktualisieren (Reset erzwingen, damit es aktuell ist)
|
# 2. Code aktualisieren (Wir nutzen den Pfad direkt, um Passwort-Probleme zu umgehen)
|
||||||
if [ ! -d ".git" ]; then
|
git init .
|
||||||
git clone https://git.enwelo-serverumgebung.cloud/gitea-enwelo-jba/wind_tool_standortprüfung.git .
|
git remote add origin https://git.enwelo-serverumgebung.cloud/gitea-enwelo-jba/wind_tool_standortprüfung.git || true
|
||||||
else
|
git fetch origin main
|
||||||
git fetch origin main
|
git reset --hard origin/main
|
||||||
git reset --hard origin/main
|
|
||||||
fi
|
# 3. NUR diese App starten (Projektname festlegen verhindert Konflikte)
|
||||||
|
docker compose -p wind-tool-app up -d --build --force-recreate
|
||||||
# Starten nach Anleitung
|
|
||||||
docker compose up -d --build --force-recreate
|
|
||||||
Loading…
Reference in New Issue