From 3298840cc91aeac1b0d0e1d450894028a4e81778 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Wed, 7 Aug 2024 12:35:18 +0100 Subject: [PATCH] ci: some bastardisation for thbe ssh --- .forgejo/workflows/deploy.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 9e7513b..0bfcbeb 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -43,7 +43,9 @@ jobs: whoami eval $(ssh-agent -s) echo "${{ secrets.DEPLOY_KEY }}" | tr -d '\r' | ssh-add - - mkdir -p .ssh - chmod 700 .ssh - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > .ssh/config - - run: colmena apply -v --on @active-dns \ No newline at end of file + mkdir -p ~/.ssh + chmod 700 ~/.ssh + echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config + - run: | + alias ssh='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=~/.ssh/known_hosts -F ~/.ssh/config' + colmena apply -v --on @active-dns \ No newline at end of file