journal-homepage/.woodpecker.yml

23 lines
824 B
YAML
Raw Normal View History

2024-10-23 16:04:35 -04:00
clone:
git:
image: woodpeckerci/plugin-git
settings:
partial: false
steps:
- name: build
image: journal
environment:
PARCEL_WORKER_BACKEND: process
commands:
- yarn install
- yarn run build
- rm -rf dist/atom.xml
- find dist/ -name "*.map" -o -name "*.js" -o -name "*.ico" -o -name "*.css" -o -name "*.html" -o -name "*.svg" -o -name "*.pdf" | parallel brotli
2024-12-31 00:02:48 -05:00
- rm -rf /var/woodpecker/journal/index.* /var/woodpecker/journal/favicon.* /var/woodpecker/journal/logo-z.* /var/woodpecker/journal/webclip.* /var/woodpecker/journal/images /var/woodpecker/journal/fonts
2024-10-23 16:04:35 -04:00
- mv dist/* /var/woodpecker/journal/
volumes:
- /var/woodpecker:/var/woodpecker
- /usr/share/fonts:/usr/share/fonts
- /usr/lib/helix/runtime/:/usr/lib/helix/runtime/