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: settings:
path: . path: .
- name: build - name: build package
image: registry.mgrote.net/allzweckcontainer:latest image: registry.mgrote.net/fpm:latest
environment: environment:
DEBIAN_FRONTEND: noninteractive DEBIAN_FRONTEND: noninteractive
auth_token: auth_token:
@ -20,12 +20,28 @@ steps:
- # checkout latest stable release or stay on master for bleeding edge stuff (but expect bugs!) - # checkout latest stable release or stay on master for bleeding edge stuff (but expect bugs!)
- git checkout $(git tag | grep "^v" | tail -n 1) - git checkout $(git tag | grep "^v" | tail -n 1)
- export version=$(git tag | grep "^v" | tail -n 1 | tr -d v) - export version=$(git tag | grep "^v" | tail -n 1 | tr -d v)
- echo $version - ls -lah
- ln -s packages/debian . - pwd
- dpkg-buildpackage -uc -us - chmod 0755 alacritty
# upload - |
- cd .. fpm \
- cp sanoid_$(echo $version)_all.deb sanoid_latest_all.deb -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 curl -X POST -H "token: $auth_token" -F "file=@./sanoid_$(echo $version)_all.deb" http://docker10.grote.lan:5040/upload
- | - |