mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 17:00:30 +00:00
96828b16c1
* Support glob with doublestar for path conditions * Update docs and pipeline
40 lines
944 B
YAML
40 lines
944 B
YAML
clone:
|
|
git:
|
|
image: plugins/git:next
|
|
|
|
branches: master
|
|
|
|
pipeline:
|
|
deploy-docs:
|
|
image: node:14-alpine
|
|
secrets:
|
|
- BOT_PRIVATE_KEY
|
|
environment:
|
|
- USE_SSH=true
|
|
- GIT_USER=woodpecker-bot
|
|
- DEPLOYMENT_BRANCH=master
|
|
commands:
|
|
- apk add openssh-client git
|
|
- mkdir -p $HOME/.ssh
|
|
- ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts
|
|
- echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_rsa
|
|
- chmod 0600 $HOME/.ssh/id_rsa
|
|
- git config --global user.email "woodpecker-bot@obermui.de"
|
|
- git config --global user.name "woodpecker-bot"
|
|
- cd docs/
|
|
- yarn install --frozen-lockfile
|
|
- yarn deploy
|
|
when:
|
|
event: push
|
|
branch: master
|
|
path: "docs/**"
|
|
|
|
build-docs-pr:
|
|
image: node:14-alpine
|
|
commands:
|
|
- cd docs/
|
|
- yarn install --frozen-lockfile
|
|
- yarn build
|
|
when:
|
|
event: [pull_request]
|
|
path: "docs/**"
|