~singpolyma/asterisk

178fd4b489dd070bdc78d4d3e99048f7e26336ff — Christopher Vollick 2 months ago 4b0bdef
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.
2 files changed, 35 insertions(+), 1 deletions(-)

A .builds/debian-buster.yml
M .builds/debian-stable.yml
A .builds/debian-buster.yml => .builds/debian-buster.yml +34 -0
@@ 0,0 1,34 @@
image: debian/buster
sources:
- https://git.singpolyma.net/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

M .builds/debian-stable.yml => .builds/debian-stable.yml +1 -1
@@ 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)"