blob: 00ded93234264dc10f22a8476a630698e629d4f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
set -exuo pipefail
# This file is in the public domain.
# Helper script to build the latest DEB packages in the container.
unset LD_LIBRARY_PATH
# Install build-time dependencies.
# Update apt cache first
apt-get update
mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
export VERSION="$(./contrib/ci/jobs/2-deb-package/version.sh)"
echo "Building gnunet packages version ${VERSION}"
EMAIL=none gbp dch --ignore-branch --debian-tag="%(version)s" --git-author --new-version="${VERSION}"
./bootstrap
dpkg-buildpackage -rfakeroot -b -uc -us
ls -alh ../*.deb
mkdir -p /artifacts/gnunet/${CI_COMMIT_REF} # Variable comes from CI environment
mv ../*.deb /artifacts/gnunet/${CI_COMMIT_REF}/
|