woodpecker stable

This commit is contained in:
Midou36O 2022-08-11 01:00:31 +01:00
parent db3c632d97
commit 73eeaf31b4
Signed by untrusted user: midou
GPG Key ID: 08063D5407090BC2

View File

@ -4,16 +4,30 @@ pipeline:
commands: commands:
- npm install - npm install
- npm run build - 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 image: appleboy/drone-ssh
settings: settings:
host: host:
- projectsegfau.lt - projectsegfau.lt
username: $USERNAME username: ${USERNAME}
key: key:
from_secret: $KEY from_secret: ssh_key
port: 6665 port: 6665
command_timeout: 1m command_timeout: 1m
script: script:
- cd $${RPATH} - cd /var/www/html
- git pull - git pull