Skip to content

Commit

Permalink
Update build_deb_package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jennfshr authored Sep 3, 2024
1 parent 0bd9833 commit 607f598
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_deb_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,15 @@ jobs:
mkdir -p ~/.gnupg
chmod 0700 ~/.gnupg
echo "${GPG_PUBLIC_KEY}" > ~/.gnupg/public.key
echo ${GPG_PRIVATE_KEY} > ~/.gnupg/private.key
echo "${GPG_PRIVATE_KEY}" > ~/.gnupg/private.key
chmod 0700 ~/.gnupg
chmod 0600 ~/.gnupg/*.key
gpg -v --batch --import ~/.gnupg/public.key
gpg -v --batch --import ~/.gnupg/private.key
echo ":white_check_mark: ### Private and Public GPG Keys imported" >> $GITHUB_STEP_SUMMARY
GPG_KEY=$(gpg --list-keys --keyid-format=long | grep "^pub"| awk '{print $2}' | awk -F'/' '{print $2}')
echo -e "$GPG_USERNAME\n$GPG_EMAIL\nNo Comment\no\n" | gpg --batch --command-fd 0 --expert --edit-key ${GPG_KEY} adduid | tee -a $GITHUB_STEP_SUMMARY
echo -e "5\ny\n" | gpg --batch --command-fd 0 --expert --edit-key ${GPG_PUBLIC_KEY} trust | tee -a $GITHUB_STEP_SUMMARY
echo -e "5\ny\n" | gpg --batch --command-fd 0 --expert --edit-key ${GPG_KEY} trust | tee -a $GITHUB_STEP_SUMMARY
echo ":white_check_mark: ### GPG key edit adduid and trust complete" >> $GITHUB_STEP_SUMMARY
gpg --list-keys ${GPG_USERNAME} | tee -a $GITHUB_STEP_SUMMARY
cat /ovis-ldms/apt-repo/dists/stable/Release | gpg --debug-all --default-key ${GPG_USERNAME} -abs > /ovis-ldms/apt-repo/dists/stable/Release.gpg
Expand Down

0 comments on commit 607f598

Please sign in to comment.