From 4a1a23f9123f67f30f725dd76a03078f9e366f9d Mon Sep 17 00:00:00 2001 From: rippanda12 Date: Thu, 31 Oct 2024 16:44:19 +0200 Subject: [PATCH] Fix SSH key path in CI workflow for secure image transfer --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b6e7f8..83bc706 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,9 +72,9 @@ jobs: - name: Send image to release job run: | - echo "$SSH_KEY" > /tmp/.ssh/deploy_key - chmod 600 /tmp/.ssh/deploy_key - scp -i /tmp/.ssh/deploy_key -o StrictHostKeyChecking=no out/*.iso "$RELEASE_VM:/images/" + echo "$SSH_KEY" > /tmp/deploy_key + chmod 600 /tmp/deploy_key + scp -i /tmp/deploy_key -o StrictHostKeyChecking=no out/*.iso "$RELEASE_VM:/images/" env: SSH_KEY: ${{ secrets.SSH_KEY }} RELEASE_VM: ${{ secrets.RELEASE_VM }}