Настройка CICD
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2022-12-18 10:31:44 +03:00
parent bf9404fb35
commit b8edee1cc6

View File

@ -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: