From ccae80cc144d304b2c47e73b3e373c6c1de8db42 Mon Sep 17 00:00:00 2001 From: Midou36O <45198486+Midou36O@users.noreply.github.com> Date: Sat, 27 Aug 2022 16:01:32 +0000 Subject: [PATCH] I'll see if i can make this shit mirror from github to gitea. --- .woodpecker.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..667f8b1 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,44 @@ +pipeline: + build: + when: + event: [push, pull_request] + image: node:bullseye-slim + commands: + - npm install + - npm run build + - pwd + - mv build/ ../ + - rm -rf * + - mv ../build/* . + push: + when: + event: [push] + image: appleboy/drone-git-push + settings: + branch: build + remote: git@git.projectsegfau.lt:ProjectSegfault/website.git + force: true + commit: true + commit_message: Successfully built the page. + ssh_key: + from_secret: ssh_key_git + update: + when: + event: [push] + image: appleboy/drone-ssh + settings: + host: + - projectsegfau.lt + username: gitea + key: + from_secret: ssh_key + port: 6665 + command_timeout: 1m + script: + - cd /var/www/ + - rm -rf html + - git clone -b build https://git.projectsegfau.lt/ProjectSegfault/website.git html + - cd html + # I HATE GIT AND HOW THEY FORCE THIS + # todo: do the funny pull but find a way to accept the changes. +branches: main