auto-format #20
@ -120,7 +120,7 @@ steps:
|
||||
- '[ "$(git log -1 --pretty=%B | grep -E ".+")" = "rustfmt" ] && echo "format loop detected, aborting..." && exit 1'
|
||||
|
||||
- apk update
|
||||
- apk add openssh gpg gpg-agent util-linux
|
||||
- apk add openssh gpg gpg-agent
|
||||
|
||||
- mkdir -p "$${HOME}/.ssh"
|
||||
- echo "$SSH_PRIVATE_KEY" > "$${HOME}/.ssh/git"
|
||||
@ -137,6 +137,7 @@ steps:
|
||||
- gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' --import /tmp/private.key >> /tmp/import.sh || exit 2
|
||||
- echo "#!/bin/sh" >> /tmp/gpg.sh
|
||||
- echo "gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' $@"
|
||||
- echo "Hai"
|
||||
- chmod 777 /tmp/gpg.sh
|
||||
|
||||
- git config --local user.name "WANessa"
|
||||
@ -148,7 +149,6 @@ steps:
|
||||
# - git config core.sshCommand '/usr/bin/ssh -v'
|
||||
- git remote add ssh "$DRONE_GIT_SSH_URL"
|
||||
|
||||
- whereis gpg
|
||||
- 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" || exit 3
|
||||
- git push ssh
|
||||
|
||||
|
Reference in New Issue
Block a user