add CI
This commit is contained in:
parent
fd1a4413c5
commit
e2a171b95e
1 changed files with 15 additions and 0 deletions
15
.woodpecker.yml
Normal file
15
.woodpecker.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
when:
|
||||||
|
- branch: main
|
||||||
|
event: push
|
||||||
|
- event: tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: deploy
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- npm i
|
||||||
|
- npm run build
|
||||||
|
- rm -rf /mnt/caddy-sites/ai-tutor-poc.techtransthai.org/*
|
||||||
|
- cp -r dist/* /mnt/caddy-sites/ai-tutor-poc.techtransthai.org/
|
||||||
|
volumes:
|
||||||
|
- /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites
|
Loading…
Add table
Add a link
Reference in a new issue