first signed package
@@ -5,21 +5,31 @@ thisDir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
source $thisDir/defaults
package=$(basename $0)
+pubKey=$(gpg --armor --export "${BUILDKEY}")
+
docker run --rm \
--volume $BUILDTARGET:/packages \
+ --volume "$(gpgconf --list-dir agent-socket)":/home/dev/.gnupg/S.gpg-agent \
--volume $(readlink -f $package.patch):/$package.patch \
+ -e GPG_KEY="${pubKey}" \
-e DEBFULLNAME="$BUILDNAME" \
-e DEBEMAIL="$BUILDEMAIL" \
-ti $BUILDIMAGE \
bash -x -c "
set -euo pipefail
+ sudo chown dev:dev /home/dev/.gnupg
+ sudo chmod 700 /home/dev/.gnupg
+ echo \"\${GPG_KEY}\" > ~/gpg-key
+ gpg --import ~/gpg-key
sudo apt-get update
sudo apt-get build-dep -y --no-install-recommends $package
apt-get source $package
+ rm -f *.dsc *.debian.tar.*
cd $package-*
patch -p1 < /$package.patch
dch -i 'remove libdb'
+ dch -r ''
sudo apt-get remove -y --purge libdb5.3-dev
- dpkg-buildpackage -k$BUILDKEY
- sudo mv ../*.deb /packages
+ debuild
+ sudo mv ../*.dsc ../*.build ../*.deb ../*.tar* ../*.changes ../*.buildinfo /packages
"
