ci: typo
This commit is contained in:
parent
472e2d5d96
commit
c80db8eb54
|
@ -5,7 +5,51 @@ name: build
|
|||
depends_on:
|
||||
- lint
|
||||
steps:
|
||||
|
||||
build_package:
|
||||
image: registry.mgrote.net/fpm:latest
|
||||
environment:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
commands:
|
||||
- git clone https://git.mgrote.net/Mirror/sanoid.git
|
||||
- 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:latest
|
||||
|
|
Loading…
Reference in New Issue