This commit is contained in:
parent
bf9404fb35
commit
b8edee1cc6
21
.drone.yml
21
.drone.yml
@ -20,16 +20,17 @@ steps:
|
||||
SSH_KEY:
|
||||
from_secret: SSH_KEY
|
||||
commands:
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_KEY" | ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- ssh-keyscan google.com >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
- echo "$GPG_PRIVATE_KEY" >> gpg.key
|
||||
- echo "$MAVEN_SETTINGS" >> maven-settings.xml
|
||||
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key
|
||||
- mvn --settings maven-settings.xml -T 1C -U release:clean release:prepare release:perform --batch-mode
|
||||
- git status
|
||||
# - eval $(ssh-agent -s)
|
||||
# - echo "$SSH_KEY" | ssh-add -
|
||||
# - mkdir -p ~/.ssh
|
||||
# - chmod 700 ~/.ssh
|
||||
# - ssh-keyscan -t rsa git.struchkov.dev >> ~/.ssh/known_hosts
|
||||
# - chmod 644 ~/.ssh/known_hosts
|
||||
# - echo "$GPG_PRIVATE_KEY" >> gpg.key
|
||||
# - echo "$MAVEN_SETTINGS" >> maven-settings.xml
|
||||
# - gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key
|
||||
# - mvn --settings maven-settings.xml -T 1C -U release:clean release:prepare release:perform --batch-mode
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
|
Loading…
Reference in New Issue
Block a user