Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
sh """
mkdir -p $GNUPGHOME
chmod 700 $GNUPGHOME
- printenv
"""
// Import the GPG key
apt-ftparchive release packages/debian/dists/$distro
) >> packages/debian/dists/$distro/Release
"""
+
+ // Create InRelease
+ sh """
+ gpg --batch \
+ --clearsign \
+ --local-user ${env.GPG_KEY_ID} \
+ --output packages/debian/dists/$distro/InRelease \
+ packages/debian/dists/$distro/Release
+ """
+
+ // Create Release.gpg
+ sh """
+ gpg --batch \
+ --armor \
+ --detach-sign \
+ --local-user ${env.GPG_KEY_ID} \
+ --output packages/debian/dists/$distro/Release.gpg \
+ packages/debian/dists/$distro/Release
+ """
}
}