diff options
author | Devan Carpenter <devan@taler.net> | 2023-07-10 08:36:23 -0400 |
---|---|---|
committer | Devan Carpenter <devan@taler.net> | 2023-12-13 15:37:41 -0500 |
commit | 364ebfdce668fd4ab863783c032d54217fc5b8d8 (patch) | |
tree | a97db4323438fc03eb739080820a25da6d832f01 /contrib/ci/jobs/4-deb-package/job.sh | |
parent | 349cb24876d6be14ef3c19f90761cf4af28820e8 (diff) | |
download | merchant-364ebfdce668fd4ab863783c032d54217fc5b8d8.tar.gz merchant-364ebfdce668fd4ab863783c032d54217fc5b8d8.tar.bz2 merchant-364ebfdce668fd4ab863783c032d54217fc5b8d8.zip |
ci: add basic CI config
Diffstat (limited to 'contrib/ci/jobs/4-deb-package/job.sh')
-rwxr-xr-x | contrib/ci/jobs/4-deb-package/job.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/ci/jobs/4-deb-package/job.sh b/contrib/ci/jobs/4-deb-package/job.sh new file mode 100755 index 00000000..a0801b41 --- /dev/null +++ b/contrib/ci/jobs/4-deb-package/job.sh @@ -0,0 +1,23 @@ +#!/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 +apt-get upgrade -y +mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control + +export VERSION="$(./contrib/ci/jobs/4-deb-package/version.sh)" +echo "Building package 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/merchant/${CI_COMMIT_REF} # Variable comes from CI environment +mv ../*.deb /artifacts/merchant/${CI_COMMIT_REF}/ |