fix(ci): move rpmmacros to template file
All checks were successful
poll-upstream / check (push) Successful in 1s
All checks were successful
poll-upstream / check (push) Successful in 1s
The heredoc with column-0 lines inside a YAML block scalar may confuse Gitea's workflow parser. Move rpmmacros content to rpm/rpmmacros as a template with sed substitution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -136,10 +136,7 @@ jobs:
|
|||||||
- name: Import signing key
|
- name: Import signing key
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.RPM_SIGNING_KEY }}" | gpg --batch --import
|
echo "${{ secrets.RPM_SIGNING_KEY }}" | gpg --batch --import
|
||||||
cat > ~/.rpmmacros << 'RPMMACROS'
|
sed "s/@GPG_NAME@/${{ secrets.RPM_SIGNING_KEY_ID }}/" rpm/rpmmacros > ~/.rpmmacros
|
||||||
%_gpg_name ${{ secrets.RPM_SIGNING_KEY_ID }}
|
|
||||||
%__gpg_sign_cmd %{__gpg} --batch --no-armor --no-tty --pinentry-mode loopback --passphrase '' %{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}} --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} --digest-algo sha256 %{__plaintext_filename}
|
|
||||||
RPMMACROS
|
|
||||||
|
|
||||||
- name: Sign and publish
|
- name: Sign and publish
|
||||||
run: ./script/publish-repo.sh rpms/
|
run: ./script/publish-repo.sh rpms/
|
||||||
|
|||||||
2
rpm/rpmmacros
Normal file
2
rpm/rpmmacros
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
%_gpg_name @GPG_NAME@
|
||||||
|
%__gpg_sign_cmd %{__gpg} --batch --no-armor --no-tty --pinentry-mode loopback --passphrase '' %{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}} --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} --digest-algo sha256 %{__plaintext_filename}
|
||||||
Reference in New Issue
Block a user