og-image/.woodpecker.yml
Simon Vieille cfa6664b4e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
update ci
2023-01-30 11:13:54 +01:00

32 lines
707 B
YAML

pipeline:
build:
image: node:16-alpine
commands:
- npm i
- npm run build
update:
image: alpine/git
commands:
- rm package-lock.json
- 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/og-image.git
force: false
commit: false
ssh_key:
from_secret: ssh_priv_key