diff options
author | t3sserakt <t3ss@posteo.de> | 2023-11-23 10:46:20 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2023-11-23 10:46:20 +0100 |
commit | e7477c3ec1b3d58bde936d58bc0d2d87bdbb19f2 (patch) | |
tree | 7d588a94155c54272815bbcd708852f4a8aa5485 /contrib/ci/jobs/2-deb-package/job.sh | |
parent | 015cef0462d5cfabd28792fc083a813aa53a3ed9 (diff) | |
parent | 134c62afff16745f2144ccd06990ff92897ef175 (diff) | |
download | gnunet-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-x | contrib/ci/jobs/2-deb-package/job.sh | 22 |
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 | ||
2 | set -exuo pipefail | ||
3 | # This file is in the public domain. | ||
4 | # Helper script to build the latest DEB packages in the container. | ||
5 | |||
6 | |||
7 | unset LD_LIBRARY_PATH | ||
8 | |||
9 | # Install build-time dependencies. | ||
10 | # Update apt cache first | ||
11 | apt-get update | ||
12 | mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control | ||
13 | |||
14 | export VERSION="$(./ci/jobs/2-deb-package/version.sh)" | ||
15 | echo "Building gnunet packages version ${VERSION}" | ||
16 | EMAIL=none gbp dch --ignore-branch --debian-tag="%(version)s" --git-author --new-version="${VERSION}" | ||
17 | ./bootstrap | ||
18 | dpkg-buildpackage -rfakeroot -b -uc -us | ||
19 | |||
20 | ls -alh ../*.deb | ||
21 | mkdir -p /artifacts/gnunet/${CI_COMMIT_REF} # Variable comes from CI environment | ||
22 | mv ../*.deb /artifacts/gnunet/${CI_COMMIT_REF}/ | ||