From 74a15197bd9e1e407b8e5efe853561d966d06fb0 Mon Sep 17 00:00:00 2001 From: Andreas Martin Date: Thu, 23 Apr 2026 11:59:15 +0200 Subject: [PATCH] Change key and add Secrets --- .gitea/workflows/deploy.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 3a0ab4f..44ba648 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -25,8 +25,8 @@ jobs: - name: 🔑 SSH-Key vorbereiten run: | mkdir -p ~/.ssh - echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25516 + chmod 600 ~/.ssh/id_ed25516 ssh-keyscan -H -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts # ───────────────────────────────────────────── @@ -35,7 +35,7 @@ jobs: - name: 🔌 SSH-Verbindung testen run: | ssh -p ${{ secrets.SSH_PORT }} \ - -i ~/.ssh/id_rsa \ + -i ~/.ssh/id_ed25516 \ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \ "echo '✅ SSH-Verbindung erfolgreich' && hostname && date" @@ -45,7 +45,7 @@ jobs: - name: 📤 index.html auf Server kopieren run: | scp -P ${{ secrets.SSH_PORT }} \ - -i ~/.ssh/id_rsa \ + -i ~/.ssh/id_ed25516 \ ./index.html \ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.DEPLOY_PATH }}/index.html @@ -55,7 +55,7 @@ jobs: - name: 🔧 Dateirechte anpassen run: | ssh -p ${{ secrets.SSH_PORT }} \ - -i ~/.ssh/id_rsa \ + -i ~/.ssh/id_ed25516 \ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \ "chmod 644 ${{ secrets.DEPLOY_PATH }}/index.html && ls -lah ${{ secrets.DEPLOY_PATH }}/"