~sircmpwn/sr.ht-dev

4 2

[PATCH hg.sr.ht] Add a build manifest for Debian packaging

Details
Message ID
<dd89c42d64ddf56d3bbf.1568664103@marimba>
DKIM signature
missing
Download raw message
# HG changeset patch
# User Denis Laxalde <denis@laxalde.org>
# Date 1568663723 -7200
#      lun. sept. 16 21:55:23 2019 +0200
# Node ID dd89c42d64ddf56d3bbf269d955748e3c83df4c9
# Parent  5d0f4270f1d262841baec14cf1fa7f8b1b9ba526
Add a build manifest for Debian packaging

diff --git a/.builds/debian.yml b/.builds/debian.yml
new file mode 100644
--- /dev/null
+++ b/.builds/debian.yml
@@ -0,0 +1,40 @@
+image: debian/sid
+repositories:
+  sr.ht: https://mirror.sr.ht/debian/ sid main 6B1296C65B24472674E7B6520585B50AC6A4914D
+packages:
+  - devscripts
+  - reprepro
+  - rsync
+sources:
+  - hg+https://hg.sr.ht/~sircmpwn/hg.sr.ht
+  - hg+https://hg.sr.ht/~dlax/hg.sr.ht-deb
+  - https://hg.sr.ht/~dlax/sr.ht-debbuilds
+environment:
+  project: hg.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=$(hg id -r . -T '{latesttag}-{latesttagdistance}-{node|short}\n')
+      echo "pkgver=$pkgver" >> ~/.buildenv
+      hg archive ../"${project}_${pkgver}".orig.tar.gz \
+        --prefix="${project}-${pkgver}"/
+  - package: |
+      cd sr.ht-debbuilds
+      ./pkgkit build-version -li ${project} ${pkgver}
+      cd ~/${project}
+      if [ "$(hg id -r . -T '{latesttagdistance}')" -ne 1 ]
+      then
+          complete-build
+      fi
+  - upload: |
+      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
+      cd ~/sr.ht-debbuilds
+      ./pkgkit include ${project} ${pkgver}
Details
Message ID
<20190917080022.ggma4ebkrgprxjsj@logilab.fr>
In-Reply-To
<dd89c42d64ddf56d3bbf.1568664103@marimba> (view parent)
DKIM signature
missing
Download raw message
Denis Laxalde a écrit :
> diff --git a/.builds/debian.yml b/.builds/debian.yml
> new file mode 100644
> --- /dev/null
> +++ b/.builds/debian.yml
> @@ -0,0 +1,40 @@
> +image: debian/sid
> +repositories:
> +  sr.ht: https://mirror.sr.ht/debian/ sid main 6B1296C65B24472674E7B6520585B50AC6A4914D
> +packages:
> +  - devscripts
> +  - reprepro
> +  - rsync
> +sources:
> +  - hg+https://hg.sr.ht/~sircmpwn/hg.sr.ht
> +  - hg+https://hg.sr.ht/~dlax/hg.sr.ht-deb
> +  - https://hg.sr.ht/~dlax/sr.ht-debbuilds

Typo in the line above; should be https://git.sr.ht/~dlax/sr.ht-debbuilds
Let me know if I should send a v2 or if this can be fixed in flight.
Details
Message ID
<BX38THPSR857.2EPVKUXJQS9IS@homura>
In-Reply-To
<dd89c42d64ddf56d3bbf.1568664103@marimba> (view parent)
DKIM signature
pass
Download raw message
On Mon Sep 16, 2019 at 10:01 PM Denis Laxalde wrote:
> # HG changeset patch
> # User Denis Laxalde <denis@laxalde.org>
> # Date 1568663723 -7200
> #      lun. sept. 16 21:55:23 2019 +0200
> # Node ID dd89c42d64ddf56d3bbf269d955748e3c83df4c9
> # Parent  5d0f4270f1d262841baec14cf1fa7f8b1b9ba526
> Add a build manifest for Debian packaging
> 
> diff --git a/.builds/debian.yml b/.builds/debian.yml
> new file mode 100644
> --- /dev/null
> +++ b/.builds/debian.yml
> @@ -0,0 +1,40 @@
> +image: debian/sid
> +repositories:
> +  sr.ht: https://mirror.sr.ht/debian/ sid main 6B1296C65B24472674E7B6520585B50AC6A4914D
> +packages:
> +  - devscripts
> +  - reprepro
> +  - rsync
> +sources:
> +  - hg+https://hg.sr.ht/~sircmpwn/hg.sr.ht
> +  - hg+https://hg.sr.ht/~dlax/hg.sr.ht-deb
> +  - https://hg.sr.ht/~dlax/sr.ht-debbuilds

This needs to be git.sr.ht, not hg.sr.ht
Details
Message ID
<BX38U9UKJP3H.1KM8VG6ET6IJ1@homura>
In-Reply-To
<dd89c42d64ddf56d3bbf.1568664103@marimba> (view parent)
DKIM signature
pass
Download raw message
Pushed everything, fixed the hg.sr.ht issue, and babysitted the
deployments - everything worked. Thanks for all of your hard work!
Details
Message ID
<BX50T9I8UQ3D.2DPWORKFLIE54@koishi>
In-Reply-To
<20190917080022.ggma4ebkrgprxjsj@logilab.fr> (view parent)
DKIM signature
pass
Download raw message
On Tue Sep 17, 2019 at 10:00 AM Denis Laxalde wrote:
> Typo in the line above; should be https://git.sr.ht/~dlax/sr.ht-debbuilds
> Let me know if I should send a v2 or if this can be fixed in flight.

Fixed this in flight. Thanks!