-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathfilebrowser.yaml
86 lines (77 loc) · 2 KB
/
filebrowser.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package:
name: filebrowser
version: "2.32.0"
description: "Web File Browser"
epoch: 3
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- ca-certificates-bundle
- jq
- mailcap
- npm
- pnpm
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://github.com/filebrowser/filebrowser.git
tag: v${{package.version}}
expected-commit: 3d6c5152fe22a4a47783253a3506a2930b7b6be3
- name: install-npm-dependencies
working-directory: frontend
pipeline:
- runs: |
npm install --frozen-lockfile
NODE_ENV=production npm run build
- uses: go/bump
with:
deps: |-
golang.org/x/crypto@v0.35.0
golang.org/x/net@v0.36.0
modroot: .
- uses: go/build
with:
modroot: .
packages: .
ldflags: |
-X github.com/filebrowser/filebrowser/v2/version.Version=v${{package.version}}
-X github.com/filebrowser/filebrowser/v2/version.CommitSHA=$(git rev-parse HEAD)
output: ${{package.name}}
- name: copy files
pipeline:
- runs: |
cp docker_config.json ${{targets.contextdir}}/.filebrowser.json
cp healthcheck.sh ${{targets.contextdir}}/
subpackages:
- name: ${{package.name}}-compat
description: Symlink for the filebrowser binary in the root folder
pipeline:
- runs: |
ln -sf /usr/bin/filebrowser ${{targets.contextdir}}/
test:
environment:
contents:
packages:
- curl
pipeline:
- runs: |
filebrowser --help
filebrowser version | grep ${{package.version}}
- name: check health status
uses: test/daemon-check-output
with:
start: "/usr/bin/filebrowser"
timeout: 60
expected_output: |
Listening on 127.0.0.1:8080
post: |
sleep 2
curl -s http://localhost:8080/health | grep "OK" || exit 1
update:
enabled: true
github:
identifier: filebrowser/filebrowser
strip-prefix: v