Compare commits

..

No commits in common. "a239e5d867bb117137b98bec34342521f532228d" and "a85f43ea4f50212b01a964567367382d50bcaeab" have entirely different histories.

View File

@ -133,24 +133,21 @@ steps:
- chmod 700 -R "$${HOME}/.ssh" - chmod 700 -R "$${HOME}/.ssh"
- gpg-agent --daemon - gpg-agent --daemon
# the git config gpg.program absolutely despises anything other than a path, including additional arguments. - echo "$GPG_PRIVKEY" > /tmp/private.key
# so we just put it into it's own shell script and use that later - gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' --import /tmp/private.key >> /tmp/import.sh || exit 2
- 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" # see above comment - git config --local gpg.program "/tmp/gpg.sh"
# 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" - 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 push ssh - git push ssh
environment: environment: