Aktualisiere Debug-Ausgaben im Produktions-Deployment für bessere Klarheit
Some checks failed
Deploy production / deploy (push) Failing after 2s
Some checks failed
Deploy production / deploy (push) Failing after 2s
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
|||||||
test -n "$DEPLOY_SSH_PRIVATE_KEY" || { echo "TIMECLOCK_DEPLOY_SSH_PRIVATE_KEY fehlt"; exit 1; }
|
test -n "$DEPLOY_SSH_PRIVATE_KEY" || { echo "TIMECLOCK_DEPLOY_SSH_PRIVATE_KEY fehlt"; exit 1; }
|
||||||
test -n "$DEPLOY_SSH_KNOWN_HOSTS" || { echo "TIMECLOCK_DEPLOY_SSH_KNOWN_HOSTS fehlt"; exit 1; }
|
test -n "$DEPLOY_SSH_KNOWN_HOSTS" || { echo "TIMECLOCK_DEPLOY_SSH_KNOWN_HOSTS fehlt"; exit 1; }
|
||||||
|
|
||||||
echo "Verbinde zu $DEPLOY_USER@$DEPLOY_HOST …"
|
echo "Deploy-Ziel: $DEPLOY_USER@$DEPLOY_HOST"
|
||||||
|
|
||||||
install -d -m 700 "$HOME/.ssh"
|
install -d -m 700 "$HOME/.ssh"
|
||||||
printf '%s\n' "$DEPLOY_SSH_PRIVATE_KEY" > "$HOME/.ssh/id_ed25519"
|
printf '%s\n' "$DEPLOY_SSH_PRIVATE_KEY" > "$HOME/.ssh/id_ed25519"
|
||||||
@@ -31,5 +31,8 @@ jobs:
|
|||||||
printf '%s\n' "$DEPLOY_SSH_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
|
printf '%s\n' "$DEPLOY_SSH_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
|
||||||
chmod 600 "$HOME/.ssh/known_hosts"
|
chmod 600 "$HOME/.ssh/known_hosts"
|
||||||
|
|
||||||
|
echo "Deploy-Key-Fingerprint: $(ssh-keygen -y -f "$HOME/.ssh/id_ed25519" | ssh-keygen -lf - | awk '{print $2}')"
|
||||||
|
echo "known_hosts-Zeilen: $(wc -l < "$HOME/.ssh/known_hosts")"
|
||||||
|
|
||||||
ssh -o BatchMode=yes "$DEPLOY_USER@$DEPLOY_HOST" \
|
ssh -o BatchMode=yes "$DEPLOY_USER@$DEPLOY_HOST" \
|
||||||
'cd /var/www/timeclock && ./deploy-production.sh'
|
'cd /var/www/timeclock && ./deploy-production.sh'
|
||||||
|
|||||||
Reference in New Issue
Block a user