diff --git a/.woodpecker.yml b/.woodpecker.yml index acb6f55..c30bacb 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,3 +6,15 @@ pipeline: - yarn - yarn styles:watch - hugo + + deploy: + image: alpine + secrets: + - BOT_PRIVATE_KEY + commands: + - apk add openssh-client rsync + - mkdir -p $HOME/.ssh + - ssh-keyscan -t rsa nolog.cz >> $HOME/.ssh/known_hosts + - echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_rsa + - chmod 0600 $HOME/.ssh/id_rsa + - rsync -avz --delete $HOME/public nolog-git@nolog.cz:/home/test-build \ No newline at end of file