add CI for web app
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/web Pipeline failed Details

This commit is contained in:
Emerald 2023-10-26 21:51:39 -04:00
parent 4c7f941234
commit 02e1eeed44
Signed by: emerald
GPG Key ID: 13F7EFB915A0F623
3 changed files with 33 additions and 0 deletions

View File

@ -6,6 +6,8 @@ steps:
build:
image: forge.greenboi.me/emerald/cathode-build:latest
pull: true
environment:
- TAURI_MODE=tauri
commands:
- yarn install --frozen-lockfile
- yarn build

View File

@ -8,6 +8,8 @@ steps:
build:
image: forge.greenboi.me/emerald/cathode-build:latest
pull: true
environment:
- TAURI_MODE=tauri
commands:
- yarn install --frozen-lockfile
- yarn tauri build

29
.woodpecker/web.yml Normal file
View File

@ -0,0 +1,29 @@
when:
- branch: [main, dev]
event: [push, manual]
- event: deployment
environment: production
steps:
build:
image: node:20-alpine
environment:
- TAURI_MODE=web
commands:
- yarn install --frozen-lockfile
- yarn build
preview:
image: node:20-alpine
secrets: [netlify_auth_token, netlify_site_id]
when:
- event: [push, manual]
commands:
- yarn netlify deploy --dir build --site
deploy:
image: node:20-alpine
secrets: [netlify_auth_token, netlify_site_id]
when:
- event: [deployment]
environment: production
commands:
- yarn netlify deploy --prod --dir build --site