some small fixes #21

Merged
leon merged 1 commits from ci-fixes into main 2024-02-14 01:23:42 +01:00
Showing only changes of commit 68ff9732ae - Show all commits

View File

@ -133,21 +133,24 @@ steps:
- chmod 700 -R "$${HOME}/.ssh" - chmod 700 -R "$${HOME}/.ssh"
- gpg-agent --daemon - gpg-agent --daemon
- echo "$GPG_PRIVKEY" > /tmp/private.key # the git config gpg.program absolutely despises anything other than a path, including additional arguments.
- gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' --import /tmp/private.key >> /tmp/import.sh || exit 2 # so we just put it into it's own shell script and use that later
- echo "#!/bin/sh" >> /tmp/gpg.sh - echo "#!/bin/sh" >> /tmp/gpg.sh
- echo gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' \$@ >> /tmp/gpg.sh - echo gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' \$@ >> /tmp/gpg.sh
- chmod 777 /tmp/gpg.sh - chmod 777 /tmp/gpg.sh
- echo "$GPG_PRIVKEY" > /tmp/private.key
- /tmp/gpg.sh --import /tmp/private.key >> /tmp/import.sh || exit 2
- git config --local user.name "WANessa" - git config --local user.name "WANessa"
- git config --local user.email "$GIT_EMAIL_ADDRESS" - git config --local user.email "$GIT_EMAIL_ADDRESS"
- git config --local user.signingkey "$GPG_PUBKEY_ID" - git config --local user.signingkey "$GPG_PUBKEY_ID"
- git config --local gpg.program "/tmp/gpg.sh" - git config --local gpg.program "/tmp/gpg.sh" # see above comment
# Uncomment below line for ssh debugging # Uncomment below line for ssh debugging
# - git config core.sshCommand '/usr/bin/ssh -v' # - git config core.sshCommand '/usr/bin/ssh -v'
- git remote add ssh "$DRONE_GIT_SSH_URL" - git remote add ssh "$DRONE_GIT_SSH_URL"
- GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -S -a -m "rustfmt" ; cat /tmp/log #|| exit 3 - GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -S -a -m "rustfmt"
- git push ssh - git push ssh
environment: environment: