feat: adds drone file
This commit is contained in:
parent
0eab10dc09
commit
6b21abfe6a
2 changed files with 220 additions and 131 deletions
25
.drone.yml
Normal file
25
.drone.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
- npm ci || npm install
|
||||
- npm run build || npm build
|
||||
|
||||
- name: sync-files
|
||||
image: alpine:latest
|
||||
volumes:
|
||||
- name: website-data
|
||||
path: /host-target
|
||||
commands:
|
||||
- cp -a . /host-target
|
||||
|
||||
- chmod -R 777 /host-target
|
||||
|
||||
volumes:
|
||||
- name: website-data
|
||||
host:
|
||||
path: /root/khywebsite/data/html
|
||||
Loading…
Add table
Add a link
Reference in a new issue