Add Woodpecker CI configuration
This commit is contained in:
parent
95a57110e4
commit
facddd3fe6
1 changed files with 23 additions and 0 deletions
23
.woodpecker.yml
Normal file
23
.woodpecker.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
- event: tag
|
||||
|
||||
steps:
|
||||
- name: deploy
|
||||
image: node
|
||||
commands:
|
||||
- npm i
|
||||
- npm run build
|
||||
- rm -rf /mnt/caddy-sites/little-lines.techtransthai.org/*
|
||||
- cp -r dist/* /mnt/caddy-sites/little-lines.techtransthai.org/
|
||||
volumes:
|
||||
- /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites
|
||||
environment:
|
||||
VITE_BACKEND_URL: "https://little-lines-backend.techtransthai.org"
|
||||
VITE_CLIENT_ID:
|
||||
from_secret: client_id
|
||||
VITE_OPENROUTESERVICE_API_KEY:
|
||||
from_secret: ors_api_key
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue