fix(deploy): mkdir -p imap-idle dir vor scp (first-deploy path fehlt)

scp -r schlaegt fehl wenn Zielverzeichnis nicht existiert.
Loest den GH-Actions-Fehler "realpath /srv/rebreak/backend/imap-idle/: No such file".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chahinebrini 2026-05-09 20:50:44 +02:00
parent de701677b2
commit 81a5f128e5

View File

@ -120,6 +120,9 @@ jobs:
SSH_HOST: ${{ vars.HETZNER_HOST }}
SSH_USER: ${{ vars.HETZNER_USER }}
run: |
# Zielverzeichnis sicherstellen (erster Deploy: existiert noch nicht)
ssh -i ~/.ssh/id_ed25519 "$SSH_USER@$SSH_HOST" \
'mkdir -p /srv/rebreak/backend/imap-idle'
scp -r -i ~/.ssh/id_ed25519 imap-idle/ \
"$SSH_USER@$SSH_HOST:/srv/rebreak/backend/imap-idle/"