From 178fd4b489dd070bdc78d4d3e99048f7e26336ff Mon Sep 17 00:00:00 2001 From: Christopher Vollick <0@psycoti.ca> Date: Thu, 16 Sep 2021 11:56:45 -0400 Subject: [PATCH] Debian Stable and Buster A new verison of Debian was released, but our prod is still Buster. We're planning on moving to stable, though. So for now we'll build for stable and buster. --- .builds/debian-buster.yml | 34 ++++++++++++++++++++++++++++++++++ .builds/debian-stable.yml | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .builds/debian-buster.yml diff --git a/.builds/debian-buster.yml b/.builds/debian-buster.yml new file mode 100644 index 0000000..60dc0eb --- /dev/null +++ b/.builds/debian-buster.yml @@ -0,0 +1,34 @@ +image: debian/buster +sources: +- https://git.sr.ht/~singpolyma/asterisk +artifacts: +- asterisk-packages.tar.xz +environment: + LANG: C.UTF-8 +tasks: +# sourcehut doesn't include recommends by default, so we do this +- dependencies: | + sudo rm /etc/apt/apt.conf.d/60recommends + sudo DEBIAN_FRONTEND=noninteractive apt-get install -y dgit +- build_dep: | + echo "deb-src http://ftp.ca.debian.org/debian/ buster main" | sudo tee -a /etc/apt/sources.list + sudo apt-get update + sudo DEBIAN_FRONTEND=noninteractive apt-get build-dep -y asterisk +- hash_version: | + cd asterisk + ( + printf "asterisk (1:16.2.1~dfsg-2+%s) buster; urgency=medium\n\n" \ + "$(git rev-parse --short HEAD)" + printf " * Autogenerated\n\n" + printf " -- %s %s\n\n" "$(git show -s --format='%an <%ae>')" "$(date -R)" + cat debian/changelog + ) > debian/changelog.aug + mv debian/changelog.aug debian/changelog +- deborig: | + cd asterisk + git deborig +- build: | + cd asterisk + dgit --ignore-dirty build +- artifact: | + tar -cvJf asterisk-packages.tar.xz *.deb diff --git a/.builds/debian-stable.yml b/.builds/debian-stable.yml index 7c03335..9c2ef1b 100644 --- a/.builds/debian-stable.yml +++ b/.builds/debian-stable.yml @@ -17,7 +17,7 @@ tasks: - hash_version: | cd asterisk ( - printf "asterisk (1:16.2.1~dfsg-2+%s) buster; urgency=medium\n\n" \ + printf "asterisk (1:16.2.1~dfsg-2+%s) bullseye; urgency=medium\n\n" \ "$(git rev-parse --short HEAD)" printf " * Autogenerated\n\n" printf " -- %s %s\n\n" "$(git show -s --format='%an <%ae>')" "$(date -R)" -- 2.38.5