From 73eeaf31b42e1eb08090e67b19736c7c49462632 Mon Sep 17 00:00:00 2001 From: Midou36O Date: Thu, 11 Aug 2022 01:00:31 +0100 Subject: [PATCH] woodpecker stable --- .woodpecker.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 6db5b4e..acb711e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,16 +4,30 @@ pipeline: commands: - npm install - npm run build - publish: + - pwd + - mv build/ ../ + - rm -rf * + - mv ../build/* . + push: + image: appleboy/drone-git-push + settings: + branch: build + remote: git@git.projectsegfau.lt:midou/website.git + force: true + commit: true + ssh_key: + from_secret: ssh_key_git + + update: image: appleboy/drone-ssh settings: host: - projectsegfau.lt - username: $USERNAME + username: ${USERNAME} key: - from_secret: $KEY + from_secret: ssh_key port: 6665 command_timeout: 1m script: - - cd $${RPATH} + - cd /var/www/html - git pull