From 0ff87a7981caa3d57e31629b28af09159538dc78 Mon Sep 17 00:00:00 2001 From: s3lph Date: Fri, 6 Jan 2023 00:29:09 +0100 Subject: [PATCH] Fix .ssh/known_hosts --- .woodpecker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index b5e0f1e..f5babd1 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -21,9 +21,9 @@ pipeline: - pip3 install -r requirements.txt - ./build.py - export SSH_PRIVKEY_FILE=.ssh/id_ed25519 - - export SSH_KNOWN_HOSTS=.ssh/known_hosts + - export SSH_KNOWN_HOSTS_FILE=.ssh/known_hosts - mkdir -p .ssh && chmod 0700 .ssh - echo "$SSH_PRIVATE_KEY" > "$SSH_PRIVKEY_FILE" - - echo "$SSH_KNOWN_HOSTS" > "$SSH_KNOWN_HOSTS" + - echo "$SSH_KNOWN_HOSTS" > "$SSH_KNOWN_HOSTS_FILE" - chmod 0600 "$SSH_PRIVKEY_FILE" - - rsync -v --recursive --delete -e "ssh -vvv -oUserKnownHostsFile=$SSH_KNOWN_HOSTS -i $SSH_PRIVKEY_FILE" "out/" "$RSYNC_DEST" + - rsync -v --recursive --delete -e "ssh -vvv -oUserKnownHostsFile=$SSH_KNOWN_HOSTS_FILE -i $SSH_PRIVKEY_FILE" "out/" "$RSYNC_DEST"