From c03c662d914e298b303ad1dcd0dbaf805179ac91 Mon Sep 17 00:00:00 2001 From: Daniel Loos Date: Mon, 2 Dec 2024 16:51:35 +0100 Subject: [PATCH] Fix SSH key name --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f68b9c..c3e7b65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,14 +20,12 @@ jobs: env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} run: | - install -m 600 -D /dev/null ~/.ssh/id_key - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_key + install -m 600 -D /dev/null ~/.ssh/id_rsa + echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa host='app' hosts="$(dig +short "$host" | grep -v '\.$' | sed -z 's|\n|,|g')$host" ssh-keyscan -H "$hosts" > ~/.ssh/known_hosts - uses: actions/checkout@v4 - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - name: Deploy website run: | ssh app hostname