Skip to content

Commit

Permalink
Quick fix for test build job
Browse files Browse the repository at this point in the history
Use container local copy of GPG home directory for signing to fix gpg
issues.

Change-Id: I552390da89056f10077626306e8c2b0bf7068fbc
  • Loading branch information
LarsMichelsen committed Jun 3, 2019
1 parent da20430 commit 35d6b50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildscripts/scripts/sign-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ if [ -z "$GPG_PASSPHRASE" ]; then
exit 1
fi

export GNUPGHOME=/bauwelt/etc/.gnupg
# /bauwelt/etc/.gnupg is mounted in RO mode, but the following gpg commands need RW access
# to the directory. Copy the contents to the container for exclusive + RW access
cp -a /bauwelt/etc/.gnupg /gnupg
export GNUPGHOME=/gnupg

echo "Sign RPM packages..."
echo "$GPG_PASSPHRASE" | \
Expand Down

0 comments on commit 35d6b50

Please sign in to comment.