og-image/.woodpecker.yml
Simon Vieille 4ab7dd79d9
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
update ci
2023-01-30 11:20:41 +01:00

34 lines
810 B
YAML

pipeline:
build:
image: node:16-alpine
commands:
- npm i
- sed -i "s#setPublicPath('/')#setPublicPath('/og-image')#" webpack.config.js
- npm run build
update:
image: alpine/git
commands:
- git add .
- git commit -m "Build"
- 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