aboutsummaryrefslogtreecommitdiff
path: root/contrib/ci/jobs/2-deb-package/job.sh
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2023-11-23 10:46:20 +0100
committert3sserakt <t3ss@posteo.de>2023-11-23 10:46:20 +0100
commite7477c3ec1b3d58bde936d58bc0d2d87bdbb19f2 (patch)
tree7d588a94155c54272815bbcd708852f4a8aa5485 /contrib/ci/jobs/2-deb-package/job.sh
parent015cef0462d5cfabd28792fc083a813aa53a3ed9 (diff)
parent134c62afff16745f2144ccd06990ff92897ef175 (diff)
downloadgnunet-e7477c3ec1b3d58bde936d58bc0d2d87bdbb19f2.tar.gz
gnunet-e7477c3ec1b3d58bde936d58bc0d2d87bdbb19f2.zip
Merge branch 'master' of ssh://git.gnunet.org/gnunet
Diffstat (limited to 'contrib/ci/jobs/2-deb-package/job.sh')
-rwxr-xr-xcontrib/ci/jobs/2-deb-package/job.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/ci/jobs/2-deb-package/job.sh b/contrib/ci/jobs/2-deb-package/job.sh
new file mode 100755
index 000000000..fc1f114f4
--- /dev/null
+++ b/contrib/ci/jobs/2-deb-package/job.sh
@@ -0,0 +1,22 @@
1#!/bin/bash
2set -exuo pipefail
3# This file is in the public domain.
4# Helper script to build the latest DEB packages in the container.
5
6
7unset LD_LIBRARY_PATH
8
9# Install build-time dependencies.
10# Update apt cache first
11apt-get update
12mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
13
14export VERSION="$(./ci/jobs/2-deb-package/version.sh)"
15echo "Building gnunet packages version ${VERSION}"
16EMAIL=none gbp dch --ignore-branch --debian-tag="%(version)s" --git-author --new-version="${VERSION}"
17./bootstrap
18dpkg-buildpackage -rfakeroot -b -uc -us
19
20ls -alh ../*.deb
21mkdir -p /artifacts/gnunet/${CI_COMMIT_REF} # Variable comes from CI environment
22mv ../*.deb /artifacts/gnunet/${CI_COMMIT_REF}/