.gitea/workflows/deploy.yml aktualisiert
Deploy Standortpruefung / deploy (push) Failing after 3s
Details
Deploy Standortpruefung / deploy (push) Failing after 3s
Details
This commit is contained in:
parent
d18905d19b
commit
156864cd10
|
|
@ -1,26 +1,19 @@
|
||||||
name: Deploy Standortpruefung
|
name: Deploy Standortpruefung
|
||||||
on: [push]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy via SSH
|
- name: Code holen
|
||||||
uses: appleboy/ssh-action@master
|
uses: actions/checkout@v4
|
||||||
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)
|
- name: App bauen und starten
|
||||||
git init .
|
run: |
|
||||||
git remote add origin https://git.enwelo-serverumgebung.cloud/gitea-enwelo-jba/wind_tool_standortprüfung.git || true
|
# Da der Runner Zugriff auf den Docker-Socket hat,
|
||||||
git fetch origin main
|
# baut er die App direkt dort, wo die Dateien liegen.
|
||||||
git reset --hard origin/main
|
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