From d346437843ccaed49ab1e30250cf9522b92c2e26 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 30 Jun 2023 11:43:09 +0200 Subject: [PATCH] ci: use fpm --- .drone.yml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 59021cf..42dd00f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 - |