~sircmpwn/sr.ht-dev

todo.sr.ht: Add a build manifest for Debian packaging v1 PROPOSED

Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/%3C20190916193819.21899-1-denis%40laxalde.org%3E/mbox | git am -3
Learn more about email & git

[PATCH todo.sr.ht] Add a build manifest for Debian packaging Export this patch

---
 .builds/debian.yml | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 .builds/debian.yml

diff --git a/.builds/debian.yml b/.builds/debian.yml
new file mode 100644
index 0000000..b575144
--- /dev/null
+++ b/.builds/debian.yml
@@ -0,0 +1,37 @@
+image: debian/sid
+repositories:
+  sr.ht: https://mirror.sr.ht/debian/ sid main 6B1296C65B24472674E7B6520585B50AC6A4914D
+packages:
+  - devscripts
+  - reprepro
+  - rsync
+sources:
+  - https://git.sr.ht/~sircmpwn/todo.sr.ht
+  - https://git.sr.ht/~dlax/todo.sr.ht-deb
+  - https://git.sr.ht/~dlax/sr.ht-debbuilds
+environment:
+  project: todo.sr.ht
+  remote: deploy@mirror.sr.ht
+  remote_path: /var/www/mirror.sr.ht/debian/
+  DEB_SIGN_KEYID: 6B1296C65B24472674E7B6520585B50AC6A4914D
+  DEBFULLNAME: sr.ht Debian autobuilder
+  DEBEMAIL: debian@sr.ht
+secrets:
+  - fa00a8d3-7b63-42d5-8060-3bb31c3e3018 # ssh deploy key
+  - 0f260200-f6e7-4e3a-9bfb-805e6f36b2e6 # packages/repo signing key
+tasks:
+  - archive: |
+      cd ${project}
+      pkgver=$(git describe)
+      echo "pkgver=$pkgver" >> ~/.buildenv
+      git archive -o ../"${project}_${pkgver}".orig.tar.gz \
+        --prefix="${project}-${pkgver}"/ HEAD
+  - package: |
+      cd sr.ht-debbuilds
+      ./pkgkit build-version -li ${project} ${pkgver}
+      cd ~/${project}
+      git describe --exact-match HEAD || complete-build
+  - upload: |
+      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
+      cd ~/sr.ht-debbuilds
+      ./pkgkit include ${project} ${pkgver}
-- 
2.20.1
View this thread in the archives