From 42985ef2d86b1983ae06f74caec709fd19153a40 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 23 Jan 2024 13:39:03 +0100 Subject: [PATCH] add ci to deploy on gitnet.page --- .woodpecker.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 58d85d3..305b7fd 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -21,10 +21,9 @@ steps: - mv site /tmp/ - rm * -fr - mv /tmp/site/* . - - mkdir ~/.ssh - - echo "$SSH_KEY" > ~/.ssh/id_rsa - - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - - chmod -R 400 ~/.ssh + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + - mkdir ~/.ssh && ~/.ssh/known_hosts && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config && chmod -R 400 ~/.ssh - git add . - git commit -m "Build ${CI_BUILD_NUMBER}" - git push upstream pages