.gitlab-ci.yml (956B)
1 variables:
2 DEBIAN_FRONTEND: noninteractive
3 # Common dependencies on all jobs
4 DEPS_DEV: ""
5 # Build dependencies for the .deb
6 DEPS_DEB: "build-essential debhelper devscripts"
7
8 .before_script_template: &basic-deps
9 before_script:
10 - rm -f /etc/apt/apt.conf.d/docker-clean
11 # Don't build manual database on installation
12 - |
13 debconf-set-selections << EOF
14 man-db man-db/auto-update boolean false
15 EOF
16 - apt-get -qq update
17 #- apt-get -qq install -y --no-install-recommends ${DEPS_DEV} -o=Dpkg::Use-Pty=0 > /dev/null
18
19
20 debian:
21 stage: build
22 only:
23 - main
24 image: debian:bullseye
25 <<: *basic-deps
26
27 script:
28 - apt-get -qq install -y --no-install-recommends -o=Dpkg::Use-Pty=0 ${DEPS_DEB} > /dev/null
29 - dpkg-buildpackage -us -uc -b
30 - mv ../im-notifier*.deb .
31
32 artifacts:
33 name: 'DEB packages'
34 paths: ['im-notifier*.deb']