ci(release): add GPG signing for release pipeline
All checks were successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Piotr Icikowski 2024-12-30 18:58:23 +01:00
parent 45619e358c
commit f2a27ce571
Signed by: Piotr Icikowski
GPG Key ID: 3931CA47A91F7666

View File

@ -10,6 +10,19 @@ steps:
from_secret: gitea_token from_secret: gitea_token
GIT_CREDENTIALS: GIT_CREDENTIALS:
from_secret: git_credentials from_secret: git_credentials
WOODPECKER_GPG:
from_secret: woodpecker_gpg
WOODPECKER_OWNERTRUST:
from_secret: woodpecker_ownertrust
GIT_AUTHOR_NAME: "semantic-release"
GIT_AUTHOR_EMAIL: "ci@icikowski.pl"
GIT_COMMITTER_NAME: "Woodpecker CI"
GIT_COMMITTER_EMAIL: "ci@icikowski.pl"
commands: commands:
- echo $WOODPECKER_GPG | base64 -d > /tmp/woodpecker.gpg
- echo $WOODPECKER_OWNERTRUST > /tmp/woodpecker-ownertrust.txt
- gpg -q --import /tmp/woodpecker.gpg
- gpg --import-ownertrust /tmp/woodpecker-ownertrust.txt
- git config --global user.signingkey BE8610DF8C393C56F3428A4D3E8CD051908CB569
- npm i - npm i
- npm run release - npm run release