From d9aa8bc5d12cb09d223e2f5b8aefcb1318ce1334 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 30 Jan 2023 10:51:55 +0100 Subject: [PATCH] add ci --- .woodpecker.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..66597fe --- /dev/null +++ b/.woodpecker.yml @@ -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