-
Notifications
You must be signed in to change notification settings - Fork 0
/
melange.yaml
51 lines (50 loc) · 1.24 KB
/
melange.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package:
name: foxpost
version: 1.3.0
description: Luna's blog
copyright:
- license: GPL-2.0-only
paths:
- "*"
dependencies:
runtime:
- libpq-15
- ca-certificates-bundle
- wolfi-baselayout
environment:
contents:
repositories:
- https://packages.wolfi.dev/os
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
packages:
- clang-15
- llvm15-dev
- libLLVM-15
- mold
- build-base
- wolfi-baselayout
- ca-certificates-bundle
- pkgconf
- libpq-15
- postgresql-15-dev
- busybox
- nodejs-20
- yarn
- rust
pipeline:
- name: Build Luna's blog
runs: |
EXEC_DIR="${{targets.destdir}}/usr/bin"
BLOG_HOME="${{targets.destdir}}/"
TARGETDIR="/var/cache/melange/blog"
mkdir -p "${BLOG_HOME}/media" "${EXEC_DIR}"
cargo build --release --target-dir "${TARGETDIR}"
cd static_src
yarn && yarn compile:prod
cd ..
cp "${TARGETDIR}/release/foxpost" "${EXEC_DIR}"
cp -rv static "${{targets.destdir}}/static"
cp -rv templates "${{targets.destdir}}/templates"
mkdir "${{targets.destdir}}/assets"
chmod -R +r "${{targets.destdir}}/assets"