Skip to content

Commit

Permalink
fix(ci): creates ~/sign instead of ./sign
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente J. Jiménez Miras <vjjmiras@gmail.com>
  • Loading branch information
vjjmiras authored and poiana committed Jun 20, 2022
1 parent 9231fe3 commit 5f17b7b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,14 @@ jobs:
echo "%_signature gpg" > ~/.rpmmacros
echo "%_gpg_name Falcosecurity Package Signing" >> ~/.rpmmacros
echo "%__gpg_sign_cmd %{__gpg} --force-v3-sigs --batch --no-armor --passphrase-fd 3 --no-secmem-warning -u \"%{_gpg_name}\" -sb --digest-algo sha256 %{__plaintext_filename}'" >> ~/.rpmmacros
echo '#!/usr/bin/expect -f' > sign
echo 'spawn rpmsign --addsign {*}$argv' >> sign
echo 'expect -exact "Enter pass phrase: "' >> sign
echo 'send -- "\n"' >> sign
echo 'expect eof' >> sign
chmod +x sign
cat > ~/sign \<<EOF
#!/usr/bin/expect -f
spawn rpmsign --addsign {*}$argv
expect -exact "Enter pass phrase: "
send -- "\n"
expect eof
EOF
chmod +x ~/sign
echo $GPG_KEY | base64 -d | gpg --import
- run:
name: Sign rpm x86_64
Expand Down

0 comments on commit 5f17b7b

Please sign in to comment.