auto-format #20
@ -129,7 +129,10 @@ steps:
|
||||
- chmod 700 -R "$${HOME}/.ssh"
|
||||
|
||||
- echo "$GPG_PRIVKEY" > /tmp/private.key
|
||||
- gpg-agent --daemon "gpg --import /tmp/private.key"
|
||||
- echo "#!/bin/sh" >> /tmp/import.sh
|
||||
- echo "gpg --import /tmp/private.key" >> /tmp/import.sh
|
||||
- chmod 777 /tmp/import.sh
|
||||
- gpg-agent --daemon /tmp/import.sh
|
||||
|
||||
- git config --local user.name "WANessa"
|
||||
- git config --local user.email "$GIT_EMAIL_ADDRESS"
|
||||
@ -140,7 +143,9 @@ steps:
|
||||
# - git config core.sshCommand '/usr/bin/ssh -v'
|
||||
- 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""
|
||||
- echo "#!/bin/sh" >> /tmp/commit.sh
|
||||
- echo "GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -Sam "rustfmt"" >> /tmp/commit.sh
|
||||
- gpg-agent --daemon /tmp/commit.sh
|
||||
- git push ssh
|
||||
|
||||
environment:
|
||||
|
Reference in New Issue
Block a user