diff --git a/.woodpecker.yml b/.woodpecker.yml index 305b7fd..7353a01 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,7 +11,10 @@ steps: commit: image: alpine/git + secrets: [ssh_private_key] commands: + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - git config --global user.email ci@gitnet.fr - git config --global user.name CI - git commit -m build -a @@ -21,9 +24,6 @@ steps: - mv site /tmp/ - rm * -fr - mv /tmp/site/* . - - 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