Skip to content

Commit

Permalink
Add gpg_name to rpm signing
Browse files Browse the repository at this point in the history
  • Loading branch information
vyPal committed Apr 3, 2024
1 parent 784f9cb commit 7784222
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,10 @@ jobs:
run: |
sudo apt-get install -y rpm expect
echo "${{ secrets.RPM_SIGNING_KEY }}" | gpg --batch --yes --import
sudo chown -R runner:runner $HOME/.gnupg
sudo chmod 700 $HOME/.gnupg
sudo chmod 600 $HOME/.gnupg/*
echo "%_gpg_name Jakub Palacký <kubik.palacky@gmail.com>" >> $HOME/.rpmmacros
sudo chown runner:runner ${{ steps.build-rpm.outputs.file_name }}
export GPG_TTY=/dev/console
export GNUPGHOME=$HOME/.gnupg
expect -c "
spawn rpmsign --addsign --key-id ${{ secrets.KEY_ID }} ${{ steps.build-rpm.outputs.file_name }}
spawn rpm --addsign ${{ steps.build-rpm.outputs.file_name }}
expect -exact \"Enter pass phrase: \"
send -- \"${{ secrets.KEY_PASSPHRASE }}\r\"
expect eof
Expand Down

0 comments on commit 7784222

Please sign in to comment.