journal-homepage/.woodpecker.yml
Isaac Mills 4241585b61
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Declare secret in build file
2024-12-30 22:07:14 -07:00

23 lines
851 B
YAML

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
- 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
- mv dist/* /var/woodpecker/journal/
secrets: [ MEILI_KEY ]
volumes:
- /var/woodpecker:/var/woodpecker
- /usr/share/fonts:/usr/share/fonts
- /usr/lib/helix/runtime/:/usr/lib/helix/runtime/