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