2023-09-29 16:51:31 +02:00
|
|
|
steps:
|
2023-02-11 23:57:28 +01:00
|
|
|
build:
|
2024-01-23 23:46:17 +01:00
|
|
|
image: node:20
|
2023-02-12 13:30:46 +01:00
|
|
|
pull: true
|
2023-02-11 23:57:28 +01:00
|
|
|
commands:
|
2024-01-23 23:46:17 +01:00
|
|
|
- npm install --force
|
|
|
|
- npm run build
|
2023-02-11 23:57:28 +01:00
|
|
|
|
2024-01-04 21:57:01 +01:00
|
|
|
update:
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
2024-01-25 17:44:05 +01:00
|
|
|
- mv build /tmp/
|
2024-01-04 21:57:01 +01:00
|
|
|
- git config --global user.email ci@gitnet.fr
|
|
|
|
- git config --global user.name CI
|
2024-01-23 23:49:54 +01:00
|
|
|
- git add .
|
|
|
|
- git commit -m build -a
|
|
|
|
- git fetch --no-tags origin +refs/heads/pages
|
|
|
|
- git switch pages
|
2024-01-04 21:57:01 +01:00
|
|
|
- rm * -fr
|
2024-01-23 23:46:17 +01:00
|
|
|
- mv /tmp/build/* .
|
2024-01-04 21:57:01 +01:00
|
|
|
- git add .
|
|
|
|
- git commit -m "Build ${CI_BUILD_NUMBER}"
|
2023-02-12 00:05:40 +01:00
|
|
|
|
|
|
|
deploy:
|
2024-01-04 21:57:01 +01:00
|
|
|
image: appleboy/drone-git-push
|
|
|
|
commands:
|
2023-02-12 00:05:40 +01:00
|
|
|
settings:
|
2024-01-04 21:57:01 +01:00
|
|
|
branch: pages
|
|
|
|
remote: git@gitnet.fr:deblan/side_menu_doc.git
|
|
|
|
force: false
|
|
|
|
commit: false
|
2023-02-12 00:05:40 +01:00
|
|
|
ssh_key:
|
2024-01-04 21:57:59 +01:00
|
|
|
from_secret: ssh_priv_key
|