From ab7275b97dc10fb03346f4d5fd228b9ad27a249e Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 25 Oct 2024 20:35:02 -0700 Subject: [PATCH] #17 Revert: Re-enable configuring known_hosts, combine steps into "Configure SSH" --- .gitea/workflows/silver-flame-deploy.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/silver-flame-deploy.yaml b/.gitea/workflows/silver-flame-deploy.yaml index e26b0785..8b9e73ec 100644 --- a/.gitea/workflows/silver-flame-deploy.yaml +++ b/.gitea/workflows/silver-flame-deploy.yaml @@ -27,20 +27,16 @@ jobs: name: jafnernet authToken: '${{ secrets.CACHIX_TOKEN }}' extraPullNames: nix-community - - name: Configure SSH key + - name: Configure SSH run: | echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key chmod 600 /tmp/key - - name: Get list of hosts - run: | nix eval --json .#deploy.nodes --apply 'builtins.attrValues' |\ jq -r '.[].hostname' | xargs echo > /tmp/hostlist - # - name: Add known hosts - # run: | - # mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts - # for host in $(cat /tmp/hostlist); do - # ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts - # done + mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts + for host in $(cat /tmp/hostlist); do + ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts + done # - name: Test SSH connections # run: | # for host in $(cat /tmp/hostlist); do