From 1a16083510b2973f275e40d17c3e945ab2d25c43 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 8 Mar 2023 13:35:02 +0100 Subject: [PATCH] ci: debug Host key verification failed error --- .drone.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 38c6e92c..bd40d69f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,11 +29,15 @@ steps: from_secret: ci_private_ssh_key SSH_HOST_KEY: "80.244.242.4 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE7XTCHfX6ta8EtkdOcZLnpdhMmXDfTebVMs4NC8JEPj" # SSH uses HOME from /etc/passwd, not from the environment, so override it - NIX_SSHOPTS: "-o UserKnownHostsFile=$$HOME/.ssh/known_hosts -i $$HOME/.ssh/id_ed25519" + NIX_SSHOPTS: "-o UserKnownHostsFile=$$HOME/.ssh/known_hosts -i $$HOME/.ssh/id_ed25519 -v" commands: - mkdir $$HOME/.ssh && chmod 700 $$HOME/.ssh - echo "$$PRIVATE_SSH_KEY" > $$HOME/.ssh/id_ed25519 && chmod 600 $$HOME/.ssh/id_ed25519 - echo "$$SSH_HOST_KEY" > $$HOME/.ssh/known_hosts + - echo DEBUG env + - env + - echo DEBUG ls -alh $$HOME/.ssh + - ls -alh $$HOME/.ssh - "echo DEBUG: Using NIX_FLAGS: $$NIX_FLAGS" - nix $$NIX_FLAGS develop --command deploy --magic-rollback false --skip-checks --targets '.#host_001_momo_koeln' @@ -161,6 +165,6 @@ volumes: --- kind: signature -hmac: c7083fb6372539aee0c22490f08252ec310de8e92f6d5b7d58872ffc649de660 +hmac: 4768c1415a4fafaa3819532bda1ffe59f9bcf4e79dfe24aafbc92c3a68093d74 ...