forked from NoLog.cz/public-web
Update '.woodpecker.yml'
This commit is contained in:
parent
8bb3da6247
commit
e1f75981af
1 changed files with 18 additions and 1 deletions
|
@ -5,4 +5,21 @@ pipeline:
|
|||
- apk add --no-cache nodejs yarn
|
||||
- yarn
|
||||
- yarn styles:watch
|
||||
- hugo
|
||||
- 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:/var/www/nolog.cz/
|
||||
- rsync -avz --delete $HOME/public nolog-git@nolog.cz:/home/test-build
|
||||
when:
|
||||
event: push
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
path: *when_path
|
Reference in a new issue