blob: 8b542461a6dbd899e65da02eb303ea00db2049c2 (
plain)
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
|
---
depends_on:
- lint
steps:
build_package:
image: registry.mgrote.net/fpm:latest
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- git clone https://git.mgrote.net/mirrors/sanoid
- cp sanoid-prune.service sanoid/
- cp sanoid.service sanoid/
- cp sanoid.timer sanoid/
- cd sanoid
# checkout latest stable release or stay on master for bleeding edge stuff (but expect bugs!)
#- git checkout $(git tag | grep "^v" | tail -n 1)
#- export version=$(git tag | grep "^v" | tail -n 1 | tr -d v)
- export version=3.0.4
- ls -lah
- pwd
- chmod 0755 sanoid
- chmod 0755 syncoid
- |
fpm \
-s dir \
-t deb \
--name sanoid \
--architecture all \
--description "sanoid deb package" \
--url "https://git.mgrote.net/mg/sanoid-deb" \
-p sanoid_$(echo $version).deb \
-v $(echo $version) \
--depends debhelper \
--depends libcapture-tiny-perl \
--depends libconfig-inifiles-perl \
--depends pv \
--depends lzop \
--depends mbuffer \
--depends build-essential \
--depends git \
sanoid-prune.service=/lib/systemd/system/sanoid-prune.service \
sanoid.service=/lib/systemd/system/sanoid.service \
sanoid.timer=/lib/systemd/system/sanoid.timer \
sanoid=/usr/bin/sanoid \
syncoid=/usr/bin/syncoid \
sanoid.conf=/etc/sanoid/sanoid.conf \
sanoid.defaults.conf=/etc/sanoid/sanoid.defaults.conf
- pwd
- ls -lah
upload:
image: "registry.mgrote.net/allzweckcontainer:1.0.120"
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- ls -lah
- pwd
- cd sanoid
- ls -lah
- pwd
- export version=3.0.4
- echo $version
- |
curl -X POST -H "token: $AUTH_TOKEN" -F "file=@./sanoid_$(echo $version).deb" http://docker10.mgrote.net:5040/upload
secrets:
- source: httpd-api-server-token
target: auth_token
|