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/
|
2024-12-31 00:07:14 -05:00
|
|
|
secrets: [ MEILI_KEY ]
|
2024-10-23 16:04:35 -04:00
|
|
|
volumes:
|
|
|
|
- /var/woodpecker:/var/woodpecker
|
|
|
|
- /usr/share/fonts:/usr/share/fonts
|
|
|
|
- /usr/lib/helix/runtime/:/usr/lib/helix/runtime/
|