mirror of
https://git.kh3group.com/georgebiri/kh3_website.git
synced 2026-10-16 22:51:47 +00:00
feat: add yaml file
This commit is contained in:
parent
a78cb9cb44
commit
93cff793f6
1 changed files with 25 additions and 0 deletions
25
drone-yaml.txt
Normal file
25
drone-yaml.txt
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/kh3website/data/html
|
||||||
Loading…
Add table
Add a link
Reference in a new issue