opt/automation-stack/apps/deploy.yml gelöscht
Deploy Standortpruefung / deploy (push) Failing after 2s
Details
Deploy Standortpruefung / deploy (push) Failing after 2s
Details
This commit is contained in:
parent
156864cd10
commit
8e623bc35e
|
|
@ -1,32 +0,0 @@
|
||||||
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 }}
|
|
||||||
port: 22
|
|
||||||
script: |
|
|
||||||
# 1. In das saubere App-Verzeichnis wechseln (Punkt 5 der Checkliste)
|
|
||||||
mkdir -p /opt/automation-stack/apps/wind-tool-standortpruefung
|
|
||||||
cd /opt/automation-stack/apps/wind-tool-standortpruefung
|
|
||||||
|
|
||||||
# 2. Code spiegeln oder aktualisieren
|
|
||||||
if [ ! -d ".git" ]; then
|
|
||||||
git clone https://git.enwelo-serverumgebung.cloud/gitea-enwelo-jba/wind_tool_standortprüfung.git .
|
|
||||||
else
|
|
||||||
git fetch origin main
|
|
||||||
git reset --hard origin/main
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 3. Docker Container bauen und starten
|
|
||||||
docker compose up -d --build --force-recreate
|
|
||||||
|
|
||||||
# 4. Aufräumen (alte Images entfernen)
|
|
||||||
docker image prune -f
|
|
||||||
Loading…
Reference in New Issue