~singpolyma/asterisk

4b0bdef7234527128f6bc1f9616889e63bb9f559 — Christopher Vollick 2 months ago cf90266
Git-Based Debian Versions

Augment the changelog in the build phase so we can tell which version
we're running by asking dpkg, etc.
1 files changed, 11 insertions(+), 1 deletions(-)

M .builds/debian-stable.yml
M .builds/debian-stable.yml => .builds/debian-stable.yml +11 -1
@@ 14,11 14,21 @@ tasks:
    echo "deb-src http://ftp.ca.debian.org/debian/ stable 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 build
    dgit --ignore-dirty build
- artifact: |
    tar -cvJf asterisk-packages.tar.xz *.deb