aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorMichael Grote2023-06-30 11:43:09 +0200
committerMichael Grote2023-06-30 11:43:09 +0200
commitd346437843ccaed49ab1e30250cf9522b92c2e26 (patch)
tree20797c21a616652dc771bdfd1555fad71293cd06 /.drone.yml
parent8dd08a943917b805346b9e09bdd537fe6dd2b677 (diff)
ci: use fpm
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml32
1 files 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
- |