webcompile/.woodpecker.yml

34 lines
683 B
YAML
Raw Normal View History

2022-08-10 23:31:20 +05:30
pipeline:
build:
image: node:bullseye-slim
commands:
- npm install
- npm run build
2022-08-11 05:30:31 +05:30
- pwd
- mv build/ ../
- rm -rf *
- mv ../build/* .
push:
image: appleboy/drone-git-push
settings:
branch: build
2022-08-11 05:40:19 +05:30
remote: git@git.projectsegfau.lt:ProjectSegfault/website.git
2022-08-11 05:30:31 +05:30
force: true
commit: true
ssh_key:
from_secret: ssh_key_git
update:
2022-08-10 23:31:20 +05:30
image: appleboy/drone-ssh
settings:
host:
2022-08-10 23:48:55 +05:30
- projectsegfau.lt
2022-08-11 05:30:31 +05:30
username: ${USERNAME}
2022-08-10 23:56:14 +05:30
key:
2022-08-11 05:30:31 +05:30
from_secret: ssh_key
2022-08-10 23:48:55 +05:30
port: 6665
2022-08-10 23:31:20 +05:30
command_timeout: 1m
script:
2022-08-11 05:30:31 +05:30
- cd /var/www/html
2022-08-10 23:31:20 +05:30
- git pull