~singpolyma/asterisk

ref: 4b0bdef7234527128f6bc1f9616889e63bb9f559 asterisk/.builds/debian-stable.yml -rw-r--r-- 1.1 KiB
4b0bdef7Christopher Vollick Git-Based Debian Versions 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
image: debian/stable
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/ 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 --ignore-dirty build
- artifact: |
    tar -cvJf asterisk-packages.tar.xz *.deb