-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow signing of artifacts with key provided by GPG agent
In our case the GPG agent serves 0x1D53D1877742E911 key stored on Nitrokey3 USB dongle. GPG key is bind mounted from the host. References: https://lists.openwrt.org/pipermail/openwrt-devel/2023-May/041044.html Signed-off-by: Petr Štetiar <[email protected]>
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
for dir in /master /config /certs; do | ||
for dir in /master /config /certs /home/buildbot; do | ||
[ -d "$dir" ] || continue | ||
|
||
chown --recursive buildbot:buildbot "$dir" | ||
chmod 0700 "$dir" | ||
done | ||
|
||
if [ -S "/home/buildbot/.gnupg/S.gpg-agent" ]; then | ||
chown buildbot:buildbot /home/buildbot/.gnupg/S.gpg-agent | ||
chmod 0600 /home/buildbot/.gnupg/S.gpg-agent | ||
fi | ||
|
||
/usr/sbin/gosu buildbot /start.sh "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters