From f389c51c13fe2dd81d75e36aa18145c92a93687b Mon Sep 17 00:00:00 2001 From: Maximilian Schmidt Date: Wed, 20 Nov 2024 11:52:37 +0100 Subject: [PATCH] try alternative way to ssh --- .github/workflows/build.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3203da..7fe2f15 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: with: lfs: true - - name: build Image + - name: build image id: build-image uses: redhat-actions/buildah-build@v2 with: @@ -56,12 +56,27 @@ jobs: apt update apt install --yes ssh - name: install ssh keys + # run: | + # install -m 600 -D /dev/null ~/.ssh/id_ed25519 + # echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 + # ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts + # - name: Configure SSH run: | - install -m 600 -D /dev/null ~/.ssh/id_ed25519 - echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 - ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts - cat ~/.ssh/known_hosts + mkdir -p ~/.ssh/ + echo "$SSH_PRIVATE_KEY" > ~/.ssh/staging.key + chmod 600 ~/.ssh/staging.key + cat >>~/.ssh/config <