auto-format #20
10
.drone.yml
10
.drone.yml
@ -132,21 +132,19 @@ steps:
|
|||||||
- echo "$GITEA_ECDSA_SIG" >> "$${HOME}/.ssh/known_hosts"
|
- echo "$GITEA_ECDSA_SIG" >> "$${HOME}/.ssh/known_hosts"
|
||||||
- chmod 700 -R "$${HOME}/.ssh"
|
- chmod 700 -R "$${HOME}/.ssh"
|
||||||
|
|
||||||
- echo "'$GIT_EMAIL_ADDRESS'"
|
- gpg-agent --daemon
|
||||||
- gpg --version
|
|
||||||
- gpg-agent --version
|
|
||||||
- echo "$GPG_PRIVKEY" > /tmp/private.key
|
- echo "$GPG_PRIVKEY" > /tmp/private.key
|
||||||
- gpg-agent --daemon && gpg2 --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' --import /tmp/private.key >> /tmp/import.sh || exit 2
|
- gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' --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 "/usr/bin/gpg2 --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE'"
|
- git config --local gpg.program "/usr/bin/gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE'"
|
||||||
# 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"
|
||||||
|
|
||||||
- gpg-agent --daemon && "GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -Sam "rustfmt"" || exit 3
|
- GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -Sam "rustfmt" || exit 3
|
||||||
- git push ssh
|
- git push ssh
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
Reference in New Issue
Block a user