This commit is contained in:
parent
ace8a0d891
commit
d9aa8bc5d1
30
.woodpecker.yml
Normal file
30
.woodpecker.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: node:16-alpine
|
||||
commands:
|
||||
- npm i
|
||||
- npm run build
|
||||
|
||||
update:
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git fetch --no-tags origin +refs/heads/pages
|
||||
- git switch pages
|
||||
- git config --global user.email ci@gitnet.fr
|
||||
- git config --global user.name CI
|
||||
- mv public /tmp/
|
||||
- rm * -fr
|
||||
- mv /tmp/public/* .
|
||||
- git add .
|
||||
- git commit -m "Build ${CI_BUILD_NUMBER}"
|
||||
|
||||
deploy:
|
||||
image: appleboy/drone-git-push
|
||||
commands:
|
||||
settings:
|
||||
branch: pages
|
||||
remote: git@gitnet.fr:deblan/pages-ci.git
|
||||
force: false
|
||||
commit: false
|
||||
ssh_key:
|
||||
from_secret: ssh_priv_key
|
Loading…
Reference in a new issue