ci: use fpm

This commit is contained in:
Michael Grote 2023-06-30 11:43:09 +02:00
parent 8dd08a9439
commit d346437843

View file

@ -8,8 +8,8 @@ steps:
settings:
path: .
- name: build
image: registry.mgrote.net/allzweckcontainer:latest
- name: build package
image: registry.mgrote.net/fpm:latest
environment:
DEBIAN_FRONTEND: noninteractive
auth_token:
@ -20,12 +20,28 @@ steps:
- # 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)
- echo $version
- ln -s packages/debian .
- dpkg-buildpackage -uc -us
# upload
- cd ..
- cp sanoid_$(echo $version)_all.deb sanoid_latest_all.deb
- ls -lah
- pwd
- chmod 0755 alacritty
- |
fpm \
-s dir \
-t deb \
--name alacritty \
--architecture all \
--description "alacritty terminal deb package" \
--url "https://git.mgrote.net/mg/build-alacritty" \
-p alacritty.deb \
-v $${VERSION} \
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
- |
curl -X POST -H "token: $auth_token" -F "file=@./sanoid_$(echo $version)_all.deb" http://docker10.grote.lan:5040/upload
- |